MeshLib C# Docs
Loading...
Searching...
No Matches
MR.TriPointd Class Reference

encodes a point inside a triangle using barycentric coordinates More...

+ Inheritance diagram for MR.TriPointd:

Public Member Functions

unsafe TriPointd ()
 Constructs an empty (default-constructed) instance.
 
unsafe TriPointd (MR.Const_TriPointd _other)
 Generated from constructor MR.TriPointd.TriPointd.
 
 TriPointd (TriPointd _other)
 Generated from constructor MR.TriPointd.TriPointd.
 
unsafe TriPointd (MR.Const_NoInit _1)
 Generated from constructor MR.TriPointd.TriPointd.
 
unsafe TriPointd (double a, double b)
 Generated from constructor MR.TriPointd.TriPointd.
 
unsafe TriPointd (in MR.Vector3d p, in MR.Vector3d v0, in MR.Vector3d v1, in MR.Vector3d v2)
 given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point Generated from constructor MR.TriPointd.TriPointd.
 
unsafe TriPointd (in MR.Vector3d p, in MR.Vector3d v1, in MR.Vector3d v2)
 given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point Generated from constructor MR.TriPointd.TriPointd.
 
unsafe MR.TriPointd assign (MR.Const_TriPointd _other)
 Generated from method MR.TriPointd.operator=.
 

Properties

new unsafe ref double a [get]
 < a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
 
new unsafe ref double b [get]
 

Detailed Description

encodes a point inside a triangle using barycentric coordinates

Notations used below: v0, v1, v2 - points of the triangle Generated from class MR.TriPointd. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ TriPointd() [1/7]

unsafe MR.TriPointd.TriPointd ( )
inline

Constructs an empty (default-constructed) instance.

◆ TriPointd() [2/7]

unsafe MR.TriPointd.TriPointd ( MR.Const_TriPointd _other)
inline

Generated from constructor MR.TriPointd.TriPointd.

◆ TriPointd() [3/7]

MR.TriPointd.TriPointd ( TriPointd _other)
inline

Generated from constructor MR.TriPointd.TriPointd.

◆ TriPointd() [4/7]

unsafe MR.TriPointd.TriPointd ( MR.Const_NoInit _1)
inline

Generated from constructor MR.TriPointd.TriPointd.

◆ TriPointd() [5/7]

unsafe MR.TriPointd.TriPointd ( double a,
double b )
inline

Generated from constructor MR.TriPointd.TriPointd.

◆ TriPointd() [6/7]

unsafe MR.TriPointd.TriPointd ( in MR.Vector3d p,
in MR.Vector3d v0,
in MR.Vector3d v1,
in MR.Vector3d v2 )
inline

given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point Generated from constructor MR.TriPointd.TriPointd.

◆ TriPointd() [7/7]

unsafe MR.TriPointd.TriPointd ( in MR.Vector3d p,
in MR.Vector3d v1,
in MR.Vector3d v2 )
inline

given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point Generated from constructor MR.TriPointd.TriPointd.

Member Function Documentation

◆ assign()

unsafe MR.TriPointd MR.TriPointd.assign ( MR.Const_TriPointd _other)
inline

Generated from method MR.TriPointd.operator=.

Property Documentation

◆ a

new unsafe ref double MR.TriPointd.a
get

< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1

b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2

◆ b

new unsafe ref double MR.TriPointd.b
get

The documentation for this class was generated from the following file: