MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Line2d:

Public Member Functions

auto assign_from_another (_other:&meshlib::Line2d) -> &mut meshlib::Line2d
auto call (param:f64) const -> meshlib::Vector2d
auto distance_sq (x:&meshlib::Vector2d) const -> f64
auto op_neg () const -> meshlib::Owned< meshlib::Line2d >
auto op_pos () const -> &meshlib::Line2d
auto normalized () const -> meshlib::Owned< meshlib::Line2d >
auto projection_param (x:&meshlib::Vector2d) const -> f64
auto project (x:&meshlib::Vector2d) const -> meshlib::Vector2d
auto p () const -> &meshlib::Vector2d
auto p_mut () -> &mut meshlib::Vector2d
void set_p (value:meshlib::Vector2d)
auto d () const -> &meshlib::Vector2d
auto d_mut () -> &mut meshlib::Vector2d
void set_d (value:meshlib::Vector2d)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Line2d >
static auto construct_from_another (_other:&meshlib::Line2d) -> meshlib::Owned< meshlib::Line2d >
static auto construct (p:&meshlib::Vector2d, d:&meshlib::Vector2d) -> meshlib::Owned< meshlib::Line2d >
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

Detailed Description

2- or 3-dimensional line: cross( x - p, d ) = 0 Generated from class MR::Line2d.

Generated from class MR::Line2d. Heap-allocated instances are held in Owned<Line2d>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::Line2d::assign_from_another ( _other:&meshlib::Line2d ) -> &mut meshlib::Line2d

Generated from method MR::Line2d::operator=.

Calls MR_Line2d_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ call()

auto meshlib::Line2d::call ( param:f64 ) const -> meshlib::Vector2d

returns point on the line, where param=0 returns p and param=1 returns p+d Generated from method MR::Line2d::operator().

Calls MR_Line2d_call().

◆ construct()

auto meshlib::Line2d::construct ( p:&meshlib::Vector2d ,
d:&meshlib::Vector2d  ) -> meshlib::Owned< meshlib::Line2d >
static

Generated from constructor MR::Line2d::Line2d.

Calls MR_Line2d_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.

◆ construct_from_another()

auto meshlib::Line2d::construct_from_another ( _other:&meshlib::Line2d ) -> meshlib::Owned< meshlib::Line2d >
static

Generated from constructor MR::Line2d::Line2d.

Calls MR_Line2d_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ d()

auto meshlib::Line2d::d ( ) const -> &meshlib::Vector2d

Returns a pointer to a member variable of class MR::Line2d named d.

Calls MR_Line2d_Get_d(). The reference to this object might be preserved as the return value.

◆ d_mut()

auto meshlib::Line2d::d_mut ( ) -> &mut meshlib::Vector2d

Returns a mutable pointer to a member variable of class MR::Line2d named d.

Calls MR_Line2d_GetMutable_d(). The reference to this object might be preserved as the return value.

◆ distance_sq()

auto meshlib::Line2d::distance_sq ( x:&meshlib::Vector2d ) const -> f64

returns squared distance from given point to this line Generated from method MR::Line2d::distanceSq.

Calls MR_Line2d_distanceSq().

◆ new()

auto meshlib::Line2d::new ( ) -> meshlib::Owned< meshlib::Line2d >
static

Constructs an empty (default-constructed) instance.

Calls MR_Line2d_DefaultConstruct().

◆ normalized()

auto meshlib::Line2d::normalized ( ) const -> meshlib::Owned< meshlib::Line2d >

returns same line represented with unit d-vector Generated from method MR::Line2d::normalized.

Calls MR_Line2d_normalized().

◆ op_neg()

auto meshlib::Line2d::op_neg ( ) const -> meshlib::Owned< meshlib::Line2d >

returns same line represented with flipped direction of d-vector Generated from method MR::Line2d::operator-.

Calls MR_neg_MR_Line2d().

◆ op_pos()

auto meshlib::Line2d::op_pos ( ) const -> &meshlib::Line2d

returns same representation Generated from method MR::Line2d::operator+.

Calls MR_pos_MR_Line2d().

◆ p()

auto meshlib::Line2d::p ( ) const -> &meshlib::Vector2d

Returns a pointer to a member variable of class MR::Line2d named p.

Calls MR_Line2d_Get_p(). The reference to this object might be preserved as the return value.

◆ p_mut()

auto meshlib::Line2d::p_mut ( ) -> &mut meshlib::Vector2d

Returns a mutable pointer to a member variable of class MR::Line2d named p.

Calls MR_Line2d_GetMutable_p(). The reference to this object might be preserved as the return value.

◆ project()

auto meshlib::Line2d::project ( x:&meshlib::Vector2d ) const -> meshlib::Vector2d

finds the closest point to the given one on this line Generated from method MR::Line2d::project.

Calls MR_Line2d_project().

◆ projection_param()

auto meshlib::Line2d::projection_param ( x:&meshlib::Vector2d ) const -> f64

finds the parameter of the closest point to the given one on this line Generated from method MR::Line2d::projectionParam.

Calls MR_Line2d_projectionParam().

◆ set_d()

void meshlib::Line2d::set_d ( value:meshlib::Vector2d )

Modifies a member variable of class MR::Line2d named d.

Calls MR_Line2d_Set_d(). The reference to the parameter value might be preserved in this object in element d.

◆ set_p()

void meshlib::Line2d::set_p ( value:meshlib::Vector2d )

Modifies a member variable of class MR::Line2d named p.

Calls MR_Line2d_Set_p(). The reference to the parameter value might be preserved in this object in element p.


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