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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::PolylineProjectionResult3Arg) -> &mut meshlib::PolylineProjectionResult3Arg
auto valid () const -> bool
auto point_id () const -> &meshlib::VertId
auto point_id_mut () -> &mut meshlib::VertId
void set_point_id (value:meshlib::VertId)
auto line () const -> &meshlib::UndirectedEdgeId
auto line_mut () -> &mut meshlib::UndirectedEdgeId
void set_line (value:meshlib::UndirectedEdgeId)
auto point () const -> &meshlib::Vector3f
auto point_mut () -> &mut meshlib::Vector3f
void set_point (value:meshlib::Vector3f)
auto dist_sq () const -> &f32
auto dist_sq_mut () -> &mut f32
void set_dist_sq (value:f32)
auto upcast_to_polyline_projection_result3 () const -> &meshlib::PolylineProjectionResult3
auto upcast_to_polyline_projection_result3_mut () -> &mut meshlib::PolylineProjectionResult3

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PolylineProjectionResult3Arg >
static auto construct_from_another (_other:&meshlib::PolylineProjectionResult3Arg) -> meshlib::Owned< meshlib::PolylineProjectionResult3Arg >
static auto static_downcast_from_polyline_projection_result3 (object:&meshlib::PolylineProjectionResult3) -> &Self
static auto static_downcast_from_polyline_projection_result3_mut (object:&mut meshlib::PolylineProjectionResult3) -> &mut Self
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::PolylineProjectionResult3Arg. Base classes: Direct: (non-virtual) MR::PolylineProjectionResult3

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::PolylineProjectionResult3Arg::PolylineProjectionResult3Arg.

Calls MR_PolylineProjectionResult3Arg_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::PolylineProjectionResult3Arg::convert_to_bool ( ) const -> bool

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

Calls MR_PolylineProjectionResult3Arg_ConvertTo_bool().

◆ dist_sq()

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

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

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

◆ dist_sq_mut()

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

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

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

◆ line()

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

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

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

◆ line_mut()

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

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PolylineProjectionResult3Arg_DefaultConstruct().

◆ point()

auto meshlib::PolylineProjectionResult3Arg::point ( ) const -> &meshlib::Vector3f

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

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

◆ point_id()

auto meshlib::PolylineProjectionResult3Arg::point_id ( ) const -> &meshlib::VertId

id of source point from which closest point was searched Returns a pointer to a member variable of class MR::PolylineProjectionResult3Arg named pointId.

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

◆ point_id_mut()

auto meshlib::PolylineProjectionResult3Arg::point_id_mut ( ) -> &mut meshlib::VertId

id of source point from which closest point was searched Returns a mutable pointer to a member variable of class MR::PolylineProjectionResult3Arg named pointId.

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

◆ point_mut()

auto meshlib::PolylineProjectionResult3Arg::point_mut ( ) -> &mut meshlib::Vector3f

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

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

◆ set_dist_sq()

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

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

Calls MR_PolylineProjectionResult3Arg_Set_distSq().

◆ set_line()

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

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

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

◆ set_point()

void meshlib::PolylineProjectionResult3Arg::set_point ( value:meshlib::Vector3f )

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

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

◆ set_point_id()

void meshlib::PolylineProjectionResult3Arg::set_point_id ( value:meshlib::VertId )

id of source point from which closest point was searched Modifies a member variable of class MR::PolylineProjectionResult3Arg named pointId.

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

◆ static_downcast_from_polyline_projection_result3()

auto meshlib::PolylineProjectionResult3Arg::static_downcast_from_polyline_projection_result3 ( object:&meshlib::PolylineProjectionResult3 ) -> &Self
static

Static downcast from the base class MR::PolylineProjectionResult3.

Calls MR_PolylineProjectionResult3Arg_StaticDowncastFrom_MR_PolylineProjectionResult3(). Undefined behavior if the object isn't actually a PolylineProjectionResult3Arg.

Note
This function is unsafe.

◆ static_downcast_from_polyline_projection_result3_mut()

auto meshlib::PolylineProjectionResult3Arg::static_downcast_from_polyline_projection_result3_mut ( object:&mut meshlib::PolylineProjectionResult3 ) -> &mut Self
static

Static downcast from the base class MR::PolylineProjectionResult3.

Calls MR_PolylineProjectionResult3Arg_MutableStaticDowncastFrom_MR_PolylineProjectionResult3(). Undefined behavior if the object isn't actually a PolylineProjectionResult3Arg.

Note
This function is unsafe.

◆ upcast_to_polyline_projection_result3()

auto meshlib::PolylineProjectionResult3Arg::upcast_to_polyline_projection_result3 ( ) const -> &meshlib::PolylineProjectionResult3

Upcasts to the base class MR::PolylineProjectionResult3.

Calls MR_PolylineProjectionResult3Arg_UpcastTo_MR_PolylineProjectionResult3().

◆ upcast_to_polyline_projection_result3_mut()

auto meshlib::PolylineProjectionResult3Arg::upcast_to_polyline_projection_result3_mut ( ) -> &mut meshlib::PolylineProjectionResult3

Upcasts to the base class MR::PolylineProjectionResult3.

Calls MR_PolylineProjectionResult3Arg_MutableUpcastTo_MR_PolylineProjectionResult3().

◆ valid()

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

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

Calls MR_PolylineProjectionResult3Arg_valid().


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