MeshLib C# Docs
Loading...
Searching...
No Matches

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

Inheritance diagram for MR.Const_TriPointf:

Classes

struct  _Underlying

Public Member Functions

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)
 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)

Static Public Member Functions

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

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe float * __ref_storage_a
unsafe float * __ref_storage_b

Static Protected Attributes

static unsafe float * __ref_storage_Eps

Properties

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

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 const half of the class.

Constructor & Destructor Documentation

◆ Const_TriPointf() [1/7]

unsafe MR.Const_TriPointf.Const_TriPointf ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_TriPointf() [2/7]

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

Generated from constructor MR.TriPointf.TriPointf.

◆ Const_TriPointf() [3/7]

MR.Const_TriPointf.Const_TriPointf ( TriPointf _other)
inline

Generated from constructor MR.TriPointf.TriPointf.

◆ Const_TriPointf() [4/7]

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

Generated from constructor MR.TriPointf.TriPointf.

◆ Const_TriPointf() [5/7]

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

Generated from constructor MR.TriPointf.TriPointf.

◆ Const_TriPointf() [6/7]

unsafe MR.Const_TriPointf.Const_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.

◆ Const_TriPointf() [7/7]

unsafe MR.Const_TriPointf.Const_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

◆ Dispose() [1/2]

virtual void MR.Const_TriPointf.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_TriPointf.Dispose ( bool disposing)
inlineprotectedvirtual

◆ Equals() [1/2]

bool MR.Const_TriPointf.Equals ( MR.Const_TriPointf? rhs)
inline

◆ Equals() [2/2]

override bool MR.Const_TriPointf.Equals ( object? other)
inline

◆ inVertex()

unsafe int MR.Const_TriPointf.inVertex ( )
inline

returns [0,2] if the point is in a vertex or -1 otherwise Generated from method MR.TriPointf.inVertex.

◆ lnext()

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

represents the same point relative to next edge in the same triangle Generated from method MR.TriPointf.lnext.

◆ onEdge()

unsafe int MR.Const_TriPointf.onEdge ( )
inline

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.

◆ operator!=()

unsafe bool MR.Const_TriPointf.operator!= ( MR.Const_TriPointf _this,
MR.Const_TriPointf rhs )
inlinestatic

◆ operator==()

unsafe bool MR.Const_TriPointf.operator== ( MR.Const_TriPointf _this,
MR.Const_TriPointf rhs )
inlinestatic

returns true if two points have equal (a,b) representation Generated from method MR::TriPointf::operator==.

Member Data Documentation

◆ __ref_storage_a

unsafe float* MR.Const_TriPointf.__ref_storage_a
protected

◆ __ref_storage_b

unsafe float* MR.Const_TriPointf.__ref_storage_b
protected

◆ __ref_storage_Eps

unsafe float* MR.Const_TriPointf.__ref_storage_Eps
staticprotected

Property Documentation

◆ a

unsafe float MR.Const_TriPointf.a
get

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

◆ b

unsafe float MR.Const_TriPointf.b
get

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

◆ Eps

unsafe float MR.Const_TriPointf.Eps
staticget

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