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

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

+ Inheritance diagram for MR.TriPointf:

Public Member Functions

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

Properties

new unsafe ref float a [get]
 < a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
 
new unsafe ref float 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.TriPointf. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ TriPointf() [1/7]

unsafe MR.TriPointf.TriPointf ( )
inline

Constructs an empty (default-constructed) instance.

◆ TriPointf() [2/7]

unsafe MR.TriPointf.TriPointf ( MR.Const_TriPointf _other)
inline

Generated from constructor MR.TriPointf.TriPointf.

◆ TriPointf() [3/7]

MR.TriPointf.TriPointf ( TriPointf _other)
inline

Generated from constructor MR.TriPointf.TriPointf.

◆ TriPointf() [4/7]

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

Generated from constructor MR.TriPointf.TriPointf.

◆ TriPointf() [5/7]

unsafe MR.TriPointf.TriPointf ( float a,
float b )
inline

Generated from constructor MR.TriPointf.TriPointf.

◆ TriPointf() [6/7]

unsafe MR.TriPointf.TriPointf ( in MR.Vector3f p,
in MR.Vector3f v0,
in MR.Vector3f v1,
in MR.Vector3f v2 )
inline

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

◆ TriPointf() [7/7]

unsafe MR.TriPointf.TriPointf ( in MR.Vector3f p,
in MR.Vector3f v1,
in MR.Vector3f v2 )
inline

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

Member Function Documentation

◆ assign()

unsafe MR.TriPointf MR.TriPointf.assign ( MR.Const_TriPointf _other)
inline

Generated from method MR.TriPointf.operator=.

Property Documentation

◆ a

new unsafe ref float MR.TriPointf.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 float MR.TriPointf.b
get

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