encodes a point inside a triangle using barycentric coordinates More...
Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::TriPointd) -> &mut meshlib::TriPointd |
| auto | lnext () const -> meshlib::Owned< meshlib::TriPointd > |
| auto | in_vertex () const -> core::ffi::c_int |
| auto | on_edge () const -> core::ffi::c_int |
| auto | op_equal (rhs:&meshlib::TriPointd) const -> bool |
| auto | op_not_equal (rhs:&meshlib::TriPointd) const -> bool |
| auto | a () const -> &f64 |
| auto | a_mut () -> &mut f64 |
| void | set_a (value:f64) |
| auto | b () const -> &f64 |
| auto | b_mut () -> &mut f64 |
| void | set_b (value:f64) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::TriPointd > |
| static auto | construct_from_another (_other:&meshlib::TriPointd) -> meshlib::Owned< meshlib::TriPointd > |
| static auto | construct_1 (_1:&meshlib::NoInit) -> meshlib::Owned< meshlib::TriPointd > |
| static auto | construct_2 (a:f64, b:f64) -> meshlib::Owned< meshlib::TriPointd > |
| static auto | construct_5 (p:&meshlib::Vector3d, v0:&meshlib::Vector3d, v1:&meshlib::Vector3d, v2:&meshlib::Vector3d, edge:Option< core::ffi::c_int >) -> meshlib::Owned< meshlib::TriPointd > |
| static auto | construct_4 (p:&meshlib::Vector3d, v1:&meshlib::Vector3d, v2:&meshlib::Vector3d, edge:Option< core::ffi::c_int >) -> meshlib::Owned< meshlib::TriPointd > |
| static auto | eps () -> *const f64 |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
encodes a point inside a triangle using barycentric coordinates
Notations used below: v0, v1, v2 - points of the triangle Generated from class MR::TriPointd.
Generated from class MR::TriPointd. Heap-allocated instances are held in Owned<TriPointd>.
| auto meshlib::TriPointd::a | ( | ) | const -> &f64 |
< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1 Returns a pointer to a member variable of class MR::TriPointd named a.
Calls MR_TriPointd_Get_a(). The reference to this object might be preserved as the return value.
| auto meshlib::TriPointd::a_mut | ( | ) | -> &mut f64 |
< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1 Returns a mutable pointer to a member variable of class MR::TriPointd named a.
Calls MR_TriPointd_GetMutable_a(). The reference to this object might be preserved as the return value.
| auto meshlib::TriPointd::assign_from_another | ( | _other:&meshlib::TriPointd | ) | -> &mut meshlib::TriPointd |
Generated from method MR::TriPointd::operator=.
Calls MR_TriPointd_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::TriPointd::b | ( | ) | const -> &f64 |
< b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2 Returns a pointer to a member variable of class MR::TriPointd named b.
Calls MR_TriPointd_Get_b(). The reference to this object might be preserved as the return value.
| auto meshlib::TriPointd::b_mut | ( | ) | -> &mut f64 |
< b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2 Returns a mutable pointer to a member variable of class MR::TriPointd named b.
Calls MR_TriPointd_GetMutable_b(). The reference to this object might be preserved as the return value.
|
static |
Generated from constructor MR::TriPointd::TriPointd.
Calls MR_TriPointd_Construct_1(). The reference to the parameter _1 might be preserved in the constructed object.
|
static |
Generated from constructor MR::TriPointd::TriPointd.
Calls MR_TriPointd_Construct_2().
|
static |
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::TriPointd::TriPointd.
Calls MR_TriPointd_Construct_4(). The reference to the parameter p might be preserved in the constructed object. The reference to the parameter v1 might be preserved in the constructed object. The reference to the parameter v2 might be preserved in the constructed object.
|
static |
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::TriPointd::TriPointd.
Calls MR_TriPointd_Construct_5(). The reference to the parameter p might be preserved in the constructed object. The reference to the parameter v0 might be preserved in the constructed object. The reference to the parameter v1 might be preserved in the constructed object. The reference to the parameter v2 might be preserved in the constructed object.
|
static |
Generated from constructor MR::TriPointd::TriPointd.
Calls MR_TriPointd_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
|
static |
Returns a pointer to a member variable of class MR::TriPointd named eps.
Calls MR_TriPointd_Get_eps().
| auto meshlib::TriPointd::in_vertex | ( | ) | const -> core::ffi::c_int |
returns [0,2] if the point is in a vertex or -1 otherwise Generated from method MR::TriPointd::inVertex.
Calls MR_TriPointd_inVertex().
| auto meshlib::TriPointd::lnext | ( | ) | const -> meshlib::Owned< meshlib::TriPointd > |
represents the same point relative to next edge in the same triangle Generated from method MR::TriPointd::lnext.
Calls MR_TriPointd_lnext().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_TriPointd_DefaultConstruct().
| auto meshlib::TriPointd::on_edge | ( | ) | const -> core::ffi::c_int |
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.
Calls MR_TriPointd_onEdge().
| auto meshlib::TriPointd::op_equal | ( | rhs:&meshlib::TriPointd | ) | const -> bool |
returns true if two points have equal (a,b) representation Generated from method MR::TriPointd::operator==.
Calls MR_equal_MR_TriPointd().
| auto meshlib::TriPointd::op_not_equal | ( | rhs:&meshlib::TriPointd | ) | const -> bool |
returns true if two points have equal (a,b) representation Generated from method MR::TriPointd::operator!=.
Calls MR_not_equal_MR_TriPointd().
| void meshlib::TriPointd::set_a | ( | value:f64 | ) |
< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1 Modifies a member variable of class MR::TriPointd named a.
Calls MR_TriPointd_Set_a().
| void meshlib::TriPointd::set_b | ( | value:f64 | ) |
< b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2 Modifies a member variable of class MR::TriPointd named b.
Calls MR_TriPointd_Set_b().