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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::MeshProjectionResult) -> &mut meshlib::MeshProjectionResult
auto valid () const -> bool
auto proj () const -> &meshlib::PointOnFace
auto proj_mut () -> &mut meshlib::PointOnFace
void set_proj (value:&meshlib::PointOnFace)
auto mtp () const -> &meshlib::MeshTriPoint
auto mtp_mut () -> &mut meshlib::MeshTriPoint
void set_mtp (value:&meshlib::MeshTriPoint)
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::MeshProjectionResult >
static auto construct_from (proj:&meshlib::PointOnFace, mtp:&meshlib::MeshTriPoint, distSq:f32) -> meshlib::Owned< meshlib::MeshProjectionResult >
static auto construct_from_another (_other:&meshlib::MeshProjectionResult) -> meshlib::Owned< meshlib::MeshProjectionResult >
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::MeshProjectionResult.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::MeshProjectionResult::construct_from ( proj:&meshlib::PointOnFace ,
mtp:&meshlib::MeshTriPoint ,
distSq:f32  ) -> meshlib::Owned< meshlib::MeshProjectionResult >
static

Constructs MR::MeshProjectionResult elementwise.

Calls MR_MeshProjectionResult_ConstructFrom(). The reference to the parameter proj might be preserved in the constructed object. The reference to the parameter mtp might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshProjectionResult::MeshProjectionResult.

Calls MR_MeshProjectionResult_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::MeshProjectionResult::convert_to_bool ( ) const -> bool

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

Calls MR_MeshProjectionResult_ConvertTo_bool().

◆ dist_sq()

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

squared distance from original projected point to proj Returns a pointer to a member variable of class MR::MeshProjectionResult named distSq.

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

◆ dist_sq_mut()

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

squared distance from original projected point to proj Returns a mutable pointer to a member variable of class MR::MeshProjectionResult named distSq.

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

◆ mtp()

auto meshlib::MeshProjectionResult::mtp ( ) const -> &meshlib::MeshTriPoint

its barycentric representation Returns a pointer to a member variable of class MR::MeshProjectionResult named mtp.

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

◆ mtp_mut()

auto meshlib::MeshProjectionResult::mtp_mut ( ) -> &mut meshlib::MeshTriPoint

its barycentric representation Returns a mutable pointer to a member variable of class MR::MeshProjectionResult named mtp.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MeshProjectionResult_DefaultConstruct().

◆ proj()

auto meshlib::MeshProjectionResult::proj ( ) const -> &meshlib::PointOnFace

the closest point on mesh, transformed by xf if it is given Returns a pointer to a member variable of class MR::MeshProjectionResult named proj.

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

◆ proj_mut()

auto meshlib::MeshProjectionResult::proj_mut ( ) -> &mut meshlib::PointOnFace

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

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

◆ set_dist_sq()

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

squared distance from original projected point to proj Modifies a member variable of class MR::MeshProjectionResult named distSq.

Calls MR_MeshProjectionResult_Set_distSq().

◆ set_mtp()

void meshlib::MeshProjectionResult::set_mtp ( value:&meshlib::MeshTriPoint )

its barycentric representation Modifies a member variable of class MR::MeshProjectionResult named mtp.

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

◆ set_proj()

void meshlib::MeshProjectionResult::set_proj ( value:&meshlib::PointOnFace )

the closest point on mesh, transformed by xf if it is given Modifies a member variable of class MR::MeshProjectionResult named proj.

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

◆ valid()

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

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

Calls MR_MeshProjectionResult_valid().


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