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.
 
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=.
 
- Public Member Functions inherited from MR.Const_TriPointf
virtual void Dispose ()
 
unsafe Const_TriPointf ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_TriPointf (MR.Const_TriPointf _other)
 Generated from constructor MR.TriPointf.TriPointf.
 
unsafe Const_TriPointf (MR.Const_NoInit _1)
 Generated from constructor MR.TriPointf.TriPointf.
 
unsafe Const_TriPointf (float a, float b)
 Generated from constructor MR.TriPointf.TriPointf.
 
unsafe Const_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 Const_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 lnext ()
 represents the same point relative to next edge in the same triangle Generated from method MR.TriPointf.lnext.
 
unsafe int inVertex ()
 returns [0,2] if the point is in a vertex or -1 otherwise Generated from method MR.TriPointf.inVertex.
 
unsafe int onEdge ()
 returns [0,2] if the point is on edge or -1 otherwise: 0 means edge [v1,v2]; 1 means edge [v2,v0]; 2 means edge [v0,v1] Generated from method MR.TriPointf.onEdge.
 
bool Equals (MR.Const_TriPointf? rhs)
 
override bool Equals (object? other)
 

Properties

new unsafe ref float a [get]
 b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2
 
new unsafe ref float b [get]
 
- Properties inherited from MR.Const_TriPointf
static unsafe float Eps [get]
 a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
 
unsafe float a [get]
 b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2
 
unsafe float b [get]
 
- Properties inherited from MR.Misc.Object< Const_TriPointf >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Static Public Member Functions inherited from MR.Const_TriPointf
static unsafe bool operator== (MR.Const_TriPointf _this, MR.Const_TriPointf rhs)
 returns true if two points have equal (a,b) representation Generated from method MR.TriPointf.operator==.
 
static unsafe bool operator!= (MR.Const_TriPointf _this, MR.Const_TriPointf rhs)
 
- Protected Member Functions inherited from MR.Const_TriPointf
virtual unsafe void Dispose (bool disposing)
 
- Protected Attributes inherited from MR.Misc.Object< Const_TriPointf >
bool _IsOwningVal
 

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.


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