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

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

Inheritance diagram for MR.Const_TriPointd:

Classes

struct  _Underlying

Public Member Functions

virtual void Dispose ()
unsafe Const_TriPointd ()
 Constructs an empty (default-constructed) instance.
unsafe Const_TriPointd (MR.Const_TriPointd _other)
 Generated from constructor MR.TriPointd.TriPointd.
 Const_TriPointd (TriPointd _other)
 Generated from constructor MR.TriPointd.TriPointd.
unsafe Const_TriPointd (MR.Const_NoInit _1)
 Generated from constructor MR.TriPointd.TriPointd.
unsafe Const_TriPointd (double a, double b)
 Generated from constructor MR.TriPointd.TriPointd.
unsafe Const_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 Const_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 lnext ()
 represents the same point relative to next edge in the same triangle Generated from method MR.TriPointd.lnext.
unsafe int inVertex ()
 returns [0,2] if the point is in a vertex or -1 otherwise Generated from method MR.TriPointd.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.TriPointd.onEdge.
bool Equals (MR.Const_TriPointd? rhs)
override bool Equals (object? other)

Static Public Member Functions

static unsafe bool operator== (MR.Const_TriPointd _this, MR.Const_TriPointd rhs)
 returns true if two points have equal (a,b) representation Generated from method MR::TriPointd::operator==.
static unsafe bool operator!= (MR.Const_TriPointd _this, MR.Const_TriPointd rhs)

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

unsafe double * __ref_storage_a
unsafe double * __ref_storage_b

Static Protected Attributes

static unsafe double * __ref_storage_Eps

Properties

static unsafe double Eps [get]
unsafe double a [get]
 a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
unsafe double 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.TriPointd. This is the const half of the class.

Constructor & Destructor Documentation

◆ Const_TriPointd() [1/7]

unsafe MR.Const_TriPointd.Const_TriPointd ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_TriPointd() [2/7]

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

Generated from constructor MR.TriPointd.TriPointd.

◆ Const_TriPointd() [3/7]

MR.Const_TriPointd.Const_TriPointd ( TriPointd _other)
inline

Generated from constructor MR.TriPointd.TriPointd.

◆ Const_TriPointd() [4/7]

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

Generated from constructor MR.TriPointd.TriPointd.

◆ Const_TriPointd() [5/7]

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

Generated from constructor MR.TriPointd.TriPointd.

◆ Const_TriPointd() [6/7]

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

◆ Const_TriPointd() [7/7]

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

◆ Dispose() [1/2]

virtual void MR.Const_TriPointd.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ inVertex()

unsafe int MR.Const_TriPointd.inVertex ( )
inline

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

◆ lnext()

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

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

◆ onEdge()

unsafe int MR.Const_TriPointd.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.TriPointd.onEdge.

◆ operator!=()

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

◆ operator==()

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

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

Member Data Documentation

◆ __ref_storage_a

unsafe double* MR.Const_TriPointd.__ref_storage_a
protected

◆ __ref_storage_b

unsafe double* MR.Const_TriPointd.__ref_storage_b
protected

◆ __ref_storage_Eps

unsafe double* MR.Const_TriPointd.__ref_storage_Eps
staticprotected

Property Documentation

◆ a

unsafe double MR.Const_TriPointd.a
get

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

◆ b

unsafe double MR.Const_TriPointd.b
get

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

◆ Eps

unsafe double MR.Const_TriPointd.Eps
staticget

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