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, int? edge=null)
 given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR.TriPointf.TriPointf. Parameter edge defaults to -1.
unsafe TriPointf (in MR.Vector3f p, in MR.Vector3f v1, in MR.Vector3f v2, int? edge=null)
 given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR.TriPointf.TriPointf. Parameter edge defaults to -1.
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.
 Const_TriPointf (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, int? edge=null)
 given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR.TriPointf.TriPointf. Parameter edge defaults to -1.
unsafe Const_TriPointf (in MR.Vector3f p, in MR.Vector3f v1, in MR.Vector3f v2, int? edge=null)
 given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR.TriPointf.TriPointf. Parameter edge defaults to -1.
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]
 a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
new unsafe ref float b [get]
 b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2
Properties inherited from MR.Const_TriPointf
static unsafe float Eps [get]
unsafe float a [get]
 a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
unsafe float b [get]
 b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2

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.Const_TriPointf
unsafe float * __ref_storage_a
unsafe float * __ref_storage_b
Static Protected Attributes inherited from MR.Const_TriPointf
static unsafe float * __ref_storage_Eps

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,
int? edge = null )
inline

given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR.TriPointf.TriPointf. Parameter edge defaults to -1.

◆ TriPointf() [7/7]

unsafe MR.TriPointf.TriPointf ( in MR.Vector3f p,
in MR.Vector3f v1,
in MR.Vector3f v2,
int? edge = null )
inline

given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR.TriPointf.TriPointf. Parameter edge defaults to -1.

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

new unsafe ref float MR.TriPointf.b
get

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


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