Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::LineSegm2d) -> &mut meshlib::LineSegm2d |
| auto | dir () const -> meshlib::Vector2d |
| auto | length_sq () const -> f64 |
| auto | length () const -> f64 |
| auto | call (param:f64) const -> meshlib::Vector2d |
| auto | a () const -> &meshlib::Vector2d |
| auto | a_mut () -> &mut meshlib::Vector2d |
| void | set_a (value:meshlib::Vector2d) |
| auto | b () const -> &meshlib::Vector2d |
| auto | b_mut () -> &mut meshlib::Vector2d |
| void | set_b (value:meshlib::Vector2d) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::LineSegm2d > |
| static auto | construct_from_another (_other:&meshlib::LineSegm2d) -> meshlib::Owned< meshlib::LineSegm2d > |
| static auto | construct (a:&meshlib::Vector2d, b:&meshlib::Vector2d) -> meshlib::Owned< meshlib::LineSegm2d > |
| 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 |
a segment of straight dimensional line Generated from class MR::LineSegm2d.
Generated from class MR::LineSegm2d. Heap-allocated instances are held in Owned<LineSegm2d>.
| auto meshlib::LineSegm2d::a | ( | ) | const -> &meshlib::Vector2d |
Returns a pointer to a member variable of class MR::LineSegm2d named a.
Calls MR_LineSegm2d_Get_a(). The reference to this object might be preserved as the return value.
| auto meshlib::LineSegm2d::a_mut | ( | ) | -> &mut meshlib::Vector2d |
Returns a mutable pointer to a member variable of class MR::LineSegm2d named a.
Calls MR_LineSegm2d_GetMutable_a(). The reference to this object might be preserved as the return value.
| auto meshlib::LineSegm2d::assign_from_another | ( | _other:&meshlib::LineSegm2d | ) | -> &mut meshlib::LineSegm2d |
Generated from method MR::LineSegm2d::operator=.
Calls MR_LineSegm2d_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::LineSegm2d::b | ( | ) | const -> &meshlib::Vector2d |
Returns a pointer to a member variable of class MR::LineSegm2d named b.
Calls MR_LineSegm2d_Get_b(). The reference to this object might be preserved as the return value.
| auto meshlib::LineSegm2d::b_mut | ( | ) | -> &mut meshlib::Vector2d |
Returns a mutable pointer to a member variable of class MR::LineSegm2d named b.
Calls MR_LineSegm2d_GetMutable_b(). The reference to this object might be preserved as the return value.
| auto meshlib::LineSegm2d::call | ( | param:f64 | ) | const -> meshlib::Vector2d |
returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm2d::operator().
Calls MR_LineSegm2d_call().
|
static |
Generated from constructor MR::LineSegm2d::LineSegm2d.
Calls MR_LineSegm2d_Construct(). The reference to the parameter a might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object.
|
static |
Generated from constructor MR::LineSegm2d::LineSegm2d.
Calls MR_LineSegm2d_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::LineSegm2d::dir | ( | ) | const -> meshlib::Vector2d |
returns directional vector of the line Generated from method MR::LineSegm2d::dir.
Calls MR_LineSegm2d_dir().
| auto meshlib::LineSegm2d::length | ( | ) | const -> f64 |
returns the length of this line segment Generated from method MR::LineSegm2d::length.
Calls MR_LineSegm2d_length().
| auto meshlib::LineSegm2d::length_sq | ( | ) | const -> f64 |
returns squared length of this line segment Generated from method MR::LineSegm2d::lengthSq.
Calls MR_LineSegm2d_lengthSq().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_LineSegm2d_DefaultConstruct().
| void meshlib::LineSegm2d::set_a | ( | value:meshlib::Vector2d | ) |
Modifies a member variable of class MR::LineSegm2d named a.
Calls MR_LineSegm2d_Set_a(). The reference to the parameter value might be preserved in this object in element a.
| void meshlib::LineSegm2d::set_b | ( | value:meshlib::Vector2d | ) |
Modifies a member variable of class MR::LineSegm2d named b.
Calls MR_LineSegm2d_Set_b(). The reference to the parameter value might be preserved in this object in element b.