MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::PolylineProjectionResult2 Struct Reference
Inheritance diagram for meshlib::PolylineProjectionResult2:

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::PolylineProjectionResult2) -> &mut meshlib::PolylineProjectionResult2
auto valid () const -> bool
auto line () const -> &meshlib::UndirectedEdgeId
auto line_mut () -> &mut meshlib::UndirectedEdgeId
void set_line (value:meshlib::UndirectedEdgeId)
auto point () const -> &meshlib::Vector2f
auto point_mut () -> &mut meshlib::Vector2f
void set_point (value:meshlib::Vector2f)
auto dist_sq () const -> &f32
auto dist_sq_mut () -> &mut f32
void set_dist_sq (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PolylineProjectionResult2 >
static auto construct_from (line:meshlib::UndirectedEdgeId, point:meshlib::Vector2f, distSq:f32) -> meshlib::Owned< meshlib::PolylineProjectionResult2 >
static auto construct_from_another (_other:&meshlib::PolylineProjectionResult2) -> meshlib::Owned< meshlib::PolylineProjectionResult2 >
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

Generated from class MR::PolylineProjectionResult2.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::PolylineProjectionResult2::construct_from ( line:meshlib::UndirectedEdgeId ,
point:meshlib::Vector2f ,
distSq:f32  ) -> meshlib::Owned< meshlib::PolylineProjectionResult2 >
static

Constructs MR::PolylineProjectionResult2 elementwise.

Calls MR_PolylineProjectionResult2_ConstructFrom(). The reference to the parameter line might be preserved in the constructed object. The reference to the parameter point might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::PolylineProjectionResult2::PolylineProjectionResult2.

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

◆ convert_to_bool()

auto meshlib::PolylineProjectionResult2::convert_to_bool ( ) const -> bool

Generated from conversion operator MR::PolylineProjectionResult2::operator bool.

Calls MR_PolylineProjectionResult2_ConvertTo_bool().

◆ dist_sq()

auto meshlib::PolylineProjectionResult2::dist_sq ( ) const -> &f32

squared distance from pt to proj Returns a pointer to a member variable of class MR::PolylineProjectionResult2 named distSq.

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

◆ dist_sq_mut()

auto meshlib::PolylineProjectionResult2::dist_sq_mut ( ) -> &mut f32

squared distance from pt to proj Returns a mutable pointer to a member variable of class MR::PolylineProjectionResult2 named distSq.

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

◆ line()

auto meshlib::PolylineProjectionResult2::line ( ) const -> &meshlib::UndirectedEdgeId

polyline's edge containing the closest point Returns a pointer to a member variable of class MR::PolylineProjectionResult2 named line.

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

◆ line_mut()

auto meshlib::PolylineProjectionResult2::line_mut ( ) -> &mut meshlib::UndirectedEdgeId

polyline's edge containing the closest point Returns a mutable pointer to a member variable of class MR::PolylineProjectionResult2 named line.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PolylineProjectionResult2_DefaultConstruct().

◆ point()

auto meshlib::PolylineProjectionResult2::point ( ) const -> &meshlib::Vector2f

closest point on polyline, transformed by xf if it is given Returns a pointer to a member variable of class MR::PolylineProjectionResult2 named point.

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

◆ point_mut()

auto meshlib::PolylineProjectionResult2::point_mut ( ) -> &mut meshlib::Vector2f

closest point on polyline, transformed by xf if it is given Returns a mutable pointer to a member variable of class MR::PolylineProjectionResult2 named point.

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

◆ set_dist_sq()

void meshlib::PolylineProjectionResult2::set_dist_sq ( value:f32 )

squared distance from pt to proj Modifies a member variable of class MR::PolylineProjectionResult2 named distSq.

Calls MR_PolylineProjectionResult2_Set_distSq().

◆ set_line()

void meshlib::PolylineProjectionResult2::set_line ( value:meshlib::UndirectedEdgeId )

polyline's edge containing the closest point Modifies a member variable of class MR::PolylineProjectionResult2 named line.

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

◆ set_point()

void meshlib::PolylineProjectionResult2::set_point ( value:meshlib::Vector2f )

closest point on polyline, transformed by xf if it is given Modifies a member variable of class MR::PolylineProjectionResult2 named point.

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

◆ valid()

auto meshlib::PolylineProjectionResult2::valid ( ) const -> bool

check for validity, otherwise the projection was not found Generated from method MR::PolylineProjectionResult2::valid.

Calls MR_PolylineProjectionResult2_valid().


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