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

Public Member Functions

auto assign_from_another (_other:&meshlib::TriIntersectResult) -> &mut meshlib::TriIntersectResult
auto bary () const -> &meshlib::TriPointf
auto bary_mut () -> &mut meshlib::TriPointf
void set_bary (value:&meshlib::TriPointf)
auto t () const -> &f32
auto t_mut () -> &mut f32
void set_t (value:f32)

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::TriIntersectResult) -> meshlib::Owned< meshlib::TriIntersectResult >
static auto construct (U:f32, V:f32, dist:f32) -> meshlib::Owned< meshlib::TriIntersectResult >
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::TriIntersectResult.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ bary()

auto meshlib::TriIntersectResult::bary ( ) const -> &meshlib::TriPointf

barycentric representation Returns a pointer to a member variable of class MR::TriIntersectResult named bary.

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

◆ bary_mut()

auto meshlib::TriIntersectResult::bary_mut ( ) -> &mut meshlib::TriPointf

barycentric representation Returns a mutable pointer to a member variable of class MR::TriIntersectResult named bary.

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

◆ construct()

auto meshlib::TriIntersectResult::construct ( U:f32 ,
V:f32 ,
dist:f32  ) -> meshlib::Owned< meshlib::TriIntersectResult >
static

Generated from constructor MR::TriIntersectResult::TriIntersectResult.

Calls MR_TriIntersectResult_Construct().

◆ construct_from_another()

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

Generated from constructor MR::TriIntersectResult::TriIntersectResult.

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

◆ set_bary()

void meshlib::TriIntersectResult::set_bary ( value:&meshlib::TriPointf )

barycentric representation Modifies a member variable of class MR::TriIntersectResult named bary.

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

◆ set_t()

void meshlib::TriIntersectResult::set_t ( value:f32 )

distance from ray origin to p in dir length units Modifies a member variable of class MR::TriIntersectResult named t.

Calls MR_TriIntersectResult_Set_t().

◆ t()

auto meshlib::TriIntersectResult::t ( ) const -> &f32

distance from ray origin to p in dir length units Returns a pointer to a member variable of class MR::TriIntersectResult named t.

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

◆ t_mut()

auto meshlib::TriIntersectResult::t_mut ( ) -> &mut f32

distance from ray origin to p in dir length units Returns a mutable pointer to a member variable of class MR::TriIntersectResult named t.

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


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