Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Line3d) -> &mut meshlib::Line3d |
| auto | call (param:f64) const -> meshlib::Vector3d |
| auto | distance_sq (x:&meshlib::Vector3d) const -> f64 |
| auto | op_neg () const -> meshlib::Owned< meshlib::Line3d > |
| auto | op_pos () const -> &meshlib::Line3d |
| auto | normalized () const -> meshlib::Owned< meshlib::Line3d > |
| auto | projection_param (x:&meshlib::Vector3d) const -> f64 |
| auto | project (x:&meshlib::Vector3d) const -> meshlib::Vector3d |
| auto | p () const -> &meshlib::Vector3d |
| auto | p_mut () -> &mut meshlib::Vector3d |
| void | set_p (value:meshlib::Vector3d) |
| auto | d () const -> &meshlib::Vector3d |
| auto | d_mut () -> &mut meshlib::Vector3d |
| void | set_d (value:meshlib::Vector3d) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::Line3d > |
| static auto | construct_from_another (_other:&meshlib::Line3d) -> meshlib::Owned< meshlib::Line3d > |
| static auto | construct (p:&meshlib::Vector3d, d:&meshlib::Vector3d) -> meshlib::Owned< meshlib::Line3d > |
| 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 |
2- or 3-dimensional line: cross( x - p, d ) = 0 Generated from class MR::Line3d.
Generated from class MR::Line3d. Heap-allocated instances are held in Owned<Line3d>.
| auto meshlib::Line3d::assign_from_another | ( | _other:&meshlib::Line3d | ) | -> &mut meshlib::Line3d |
Generated from method MR::Line3d::operator=.
Calls MR_Line3d_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::Line3d::call | ( | param:f64 | ) | const -> meshlib::Vector3d |
returns point on the line, where param=0 returns p and param=1 returns p+d Generated from method MR::Line3d::operator().
Calls MR_Line3d_call().
|
static |
Generated from constructor MR::Line3d::Line3d.
Calls MR_Line3d_Construct(). The reference to the parameter p might be preserved in the constructed object. The reference to the parameter d might be preserved in the constructed object.
|
static |
Generated from constructor MR::Line3d::Line3d.
Calls MR_Line3d_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Line3d::d | ( | ) | const -> &meshlib::Vector3d |
Returns a pointer to a member variable of class MR::Line3d named d.
Calls MR_Line3d_Get_d(). The reference to this object might be preserved as the return value.
| auto meshlib::Line3d::d_mut | ( | ) | -> &mut meshlib::Vector3d |
Returns a mutable pointer to a member variable of class MR::Line3d named d.
Calls MR_Line3d_GetMutable_d(). The reference to this object might be preserved as the return value.
| auto meshlib::Line3d::distance_sq | ( | x:&meshlib::Vector3d | ) | const -> f64 |
returns squared distance from given point to this line Generated from method MR::Line3d::distanceSq.
Calls MR_Line3d_distanceSq().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Line3d_DefaultConstruct().
| auto meshlib::Line3d::normalized | ( | ) | const -> meshlib::Owned< meshlib::Line3d > |
returns same line represented with unit d-vector Generated from method MR::Line3d::normalized.
Calls MR_Line3d_normalized().
| auto meshlib::Line3d::op_neg | ( | ) | const -> meshlib::Owned< meshlib::Line3d > |
returns same line represented with flipped direction of d-vector Generated from method MR::Line3d::operator-.
Calls MR_neg_MR_Line3d().
| auto meshlib::Line3d::op_pos | ( | ) | const -> &meshlib::Line3d |
returns same representation Generated from method MR::Line3d::operator+.
Calls MR_pos_MR_Line3d().
| auto meshlib::Line3d::p | ( | ) | const -> &meshlib::Vector3d |
Returns a pointer to a member variable of class MR::Line3d named p.
Calls MR_Line3d_Get_p(). The reference to this object might be preserved as the return value.
| auto meshlib::Line3d::p_mut | ( | ) | -> &mut meshlib::Vector3d |
Returns a mutable pointer to a member variable of class MR::Line3d named p.
Calls MR_Line3d_GetMutable_p(). The reference to this object might be preserved as the return value.
| auto meshlib::Line3d::project | ( | x:&meshlib::Vector3d | ) | const -> meshlib::Vector3d |
finds the closest point to the given one on this line Generated from method MR::Line3d::project.
Calls MR_Line3d_project().
| auto meshlib::Line3d::projection_param | ( | x:&meshlib::Vector3d | ) | const -> f64 |
finds the parameter of the closest point to the given one on this line Generated from method MR::Line3d::projectionParam.
Calls MR_Line3d_projectionParam().
| void meshlib::Line3d::set_d | ( | value:meshlib::Vector3d | ) |
Modifies a member variable of class MR::Line3d named d.
Calls MR_Line3d_Set_d(). The reference to the parameter value might be preserved in this object in element d.
| void meshlib::Line3d::set_p | ( | value:meshlib::Vector3d | ) |
Modifies a member variable of class MR::Line3d named p.
Calls MR_Line3d_Set_p(). The reference to the parameter value might be preserved in this object in element p.