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

Public Member Functions

auto assign_from_another (_other:&meshlib::TriTriDistanceResult_float) -> &mut meshlib::TriTriDistanceResult_float
auto a_bary (ta:&meshlib::std_array_MR_Vector3f_3) const -> meshlib::Owned< meshlib::TriPointf >
auto b_bary (tb:&meshlib::std_array_MR_Vector3f_3) const -> meshlib::Owned< meshlib::TriPointf >
auto a () const -> &meshlib::Vector3f
auto a_mut () -> &mut meshlib::Vector3f
void set_a (value:meshlib::Vector3f)
auto b () const -> &meshlib::Vector3f
auto b_mut () -> &mut meshlib::Vector3f
void set_b (value:meshlib::Vector3f)
auto dist_sq () const -> &f32
auto dist_sq_mut () -> &mut f32
void set_dist_sq (value:f32)
auto overlap () const -> &bool
auto overlap_mut () -> &mut bool
void set_overlap (value:bool)
auto a_edge () const -> &core::ffi::c_schar
auto a_edge_mut () -> &mut core::ffi::c_schar
void set_a_edge (value:core::ffi::c_schar)
auto b_edge () const -> &core::ffi::c_schar
auto b_edge_mut () -> &mut core::ffi::c_schar
void set_b_edge (value:core::ffi::c_schar)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::TriTriDistanceResult_float >
static auto construct_from (a:meshlib::Vector3f, b:meshlib::Vector3f, distSq:f32, overlap:bool, aEdge:core::ffi::c_schar, bEdge:core::ffi::c_schar) -> meshlib::Owned< meshlib::TriTriDistanceResult_float >
static auto construct_from_another (_other:&meshlib::TriTriDistanceResult_float) -> meshlib::Owned< meshlib::TriTriDistanceResult_float >
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::TriTriDistanceResult<float>.

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

Member Function Documentation

◆ a()

auto meshlib::TriTriDistanceResult_float::a ( ) const -> &meshlib::Vector3f

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Returns a pointer to a member variable of class MR::TriTriDistanceResult<float> named a.

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

◆ a_bary()

auto meshlib::TriTriDistanceResult_float::a_bary ( ta:&meshlib::std_array_MR_Vector3f_3 ) const -> meshlib::Owned< meshlib::TriPointf >

barycentric coordinates of point a in triangle ta, given to findTriTriDistance as the first one; unlike the ones computed from the position of the point, they place a point found on an edge or in a vertex there Generated from method MR::TriTriDistanceResult<float>::aBary.

Calls MR_TriTriDistanceResult_float_aBary().

◆ a_edge()

auto meshlib::TriTriDistanceResult_float::a_edge ( ) const -> &core::ffi::c_schar

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Returns a pointer to a member variable of class MR::TriTriDistanceResult<float> named aEdge.

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

◆ a_edge_mut()

auto meshlib::TriTriDistanceResult_float::a_edge_mut ( ) -> &mut core::ffi::c_schar

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Returns a mutable pointer to a member variable of class MR::TriTriDistanceResult<float> named aEdge.

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

◆ a_mut()

auto meshlib::TriTriDistanceResult_float::a_mut ( ) -> &mut meshlib::Vector3f

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Returns a mutable pointer to a member variable of class MR::TriTriDistanceResult<float> named a.

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

◆ assign_from_another()

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

Generated from method MR::TriTriDistanceResult<float>::operator=.

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

◆ b()

auto meshlib::TriTriDistanceResult_float::b ( ) const -> &meshlib::Vector3f

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Returns a pointer to a member variable of class MR::TriTriDistanceResult<float> named b.

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

◆ b_bary()

auto meshlib::TriTriDistanceResult_float::b_bary ( tb:&meshlib::std_array_MR_Vector3f_3 ) const -> meshlib::Owned< meshlib::TriPointf >

barycentric coordinates of point b in triangle tb, given to findTriTriDistance as the second one Generated from method MR::TriTriDistanceResult<float>::bBary.

Calls MR_TriTriDistanceResult_float_bBary().

◆ b_edge()

auto meshlib::TriTriDistanceResult_float::b_edge ( ) const -> &core::ffi::c_schar

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Returns a pointer to a member variable of class MR::TriTriDistanceResult<float> named bEdge.

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

◆ b_edge_mut()

auto meshlib::TriTriDistanceResult_float::b_edge_mut ( ) -> &mut core::ffi::c_schar

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Returns a mutable pointer to a member variable of class MR::TriTriDistanceResult<float> named bEdge.

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

◆ b_mut()

auto meshlib::TriTriDistanceResult_float::b_mut ( ) -> &mut meshlib::Vector3f

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Returns a mutable pointer to a member variable of class MR::TriTriDistanceResult<float> named b.

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

◆ construct_from()

auto meshlib::TriTriDistanceResult_float::construct_from ( a:meshlib::Vector3f ,
b:meshlib::Vector3f ,
distSq:f32 ,
overlap:bool ,
aEdge:core::ffi::c_schar ,
bEdge:core::ffi::c_schar  ) -> meshlib::Owned< meshlib::TriTriDistanceResult_float >
static

Constructs MR::TriTriDistanceResult<float> elementwise.

Calls MR_TriTriDistanceResult_float_ConstructFrom(). The reference to the parameter a might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object. The reference to the parameter aEdge might be preserved in the constructed object. The reference to the parameter bEdge might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::TriTriDistanceResult<float>::TriTriDistanceResult.

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

◆ dist_sq()

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

If the triangles are disjoint, it is the squared distance them (equal to the squared distance between a and b points). If the triangles overlap, it is zero. Returns a pointer to a member variable of class MR::TriTriDistanceResult<float> named distSq.

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

◆ dist_sq_mut()

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

If the triangles are disjoint, it is the squared distance them (equal to the squared distance between a and b points). If the triangles overlap, it is zero. Returns a mutable pointer to a member variable of class MR::TriTriDistanceResult<float> named distSq.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_TriTriDistanceResult_float_DefaultConstruct().

◆ overlap()

auto meshlib::TriTriDistanceResult_float::overlap ( ) const -> &bool

overlap==true means that the triangles are intersecting and not just touch one another => distSq == 0 if distSq == 0 and overlap == false, then the triangles just touch one another Returns a pointer to a member variable of class MR::TriTriDistanceResult<float> named overlap.

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

◆ overlap_mut()

auto meshlib::TriTriDistanceResult_float::overlap_mut ( ) -> &mut bool

overlap==true means that the triangles are intersecting and not just touch one another => distSq == 0 if distSq == 0 and overlap == false, then the triangles just touch one another Returns a mutable pointer to a member variable of class MR::TriTriDistanceResult<float> named overlap.

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

◆ set_a()

void meshlib::TriTriDistanceResult_float::set_a ( value:meshlib::Vector3f )

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Modifies a member variable of class MR::TriTriDistanceResult<float> named a.

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

◆ set_a_edge()

void meshlib::TriTriDistanceResult_float::set_a_edge ( value:core::ffi::c_schar )

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Modifies a member variable of class MR::TriTriDistanceResult<float> named aEdge.

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

◆ set_b()

void meshlib::TriTriDistanceResult_float::set_b ( value:meshlib::Vector3f )

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Modifies a member variable of class MR::TriTriDistanceResult<float> named b.

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

◆ set_b_edge()

void meshlib::TriTriDistanceResult_float::set_b_edge ( value:core::ffi::c_schar )

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Modifies a member variable of class MR::TriTriDistanceResult<float> named bEdge.

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

◆ set_dist_sq()

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

If the triangles are disjoint, it is the squared distance them (equal to the squared distance between a and b points). If the triangles overlap, it is zero. Modifies a member variable of class MR::TriTriDistanceResult<float> named distSq.

Calls MR_TriTriDistanceResult_float_Set_distSq().

◆ set_overlap()

void meshlib::TriTriDistanceResult_float::set_overlap ( value:bool )

overlap==true means that the triangles are intersecting and not just touch one another => distSq == 0 if distSq == 0 and overlap == false, then the triangles just touch one another Modifies a member variable of class MR::TriTriDistanceResult<float> named overlap.

Calls MR_TriTriDistanceResult_float_Set_overlap().


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