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

Public Member Functions

auto assign_from_another (_other:&meshlib::MetricToAStarPenalty) -> &mut meshlib::MetricToAStarPenalty
auto call (metric:f32, v:meshlib::VertId) const -> f32
auto points () const -> *const *const meshlib::ffi::MR_VertCoords
auto points_mut () -> *mut *const meshlib::ffi::MR_VertCoords
void set_points (value:Option<&meshlib::VertCoords >)
auto target () const -> &meshlib::Vector3f
auto target_mut () -> &mut meshlib::Vector3f
void set_target (value:meshlib::Vector3f)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MetricToAStarPenalty >
static auto construct_from (points:Option<&meshlib::VertCoords >, target:meshlib::Vector3f) -> meshlib::Owned< meshlib::MetricToAStarPenalty >
static auto construct_from_another (_other:&meshlib::MetricToAStarPenalty) -> meshlib::Owned< meshlib::MetricToAStarPenalty >
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

the vertices in the queue are ordered by the sum of their metric from a start location and the lower bound of a path till target point (A* heuristic) Generated from class MR::MetricToAStarPenalty.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ call()

auto meshlib::MetricToAStarPenalty::call ( metric:f32 ,
v:meshlib::VertId  ) const -> f32

Generated from method MR::MetricToAStarPenalty::operator().

Calls MR_MetricToAStarPenalty_call().

◆ construct_from()

auto meshlib::MetricToAStarPenalty::construct_from ( points:Option<&meshlib::VertCoords > ,
target:meshlib::Vector3f  ) -> meshlib::Owned< meshlib::MetricToAStarPenalty >
static

Constructs MR::MetricToAStarPenalty elementwise.

Calls MR_MetricToAStarPenalty_ConstructFrom(). The reference to the parameter points might be preserved in the constructed object. The reference to the parameter target might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MetricToAStarPenalty::MetricToAStarPenalty.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MetricToAStarPenalty_DefaultConstruct().

◆ points()

auto meshlib::MetricToAStarPenalty::points ( ) const -> *const *const meshlib::ffi::MR_VertCoords

Returns a pointer to a member variable of class MR::MetricToAStarPenalty named points.

Calls MR_MetricToAStarPenalty_Get_points(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ points_mut()

auto meshlib::MetricToAStarPenalty::points_mut ( ) -> *mut *const meshlib::ffi::MR_VertCoords

Returns a mutable pointer to a member variable of class MR::MetricToAStarPenalty named points.

Calls MR_MetricToAStarPenalty_GetMutable_points(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ set_points()

void meshlib::MetricToAStarPenalty::set_points ( value:Option<&meshlib::VertCoords > )

Modifies a member variable of class MR::MetricToAStarPenalty named points.

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

◆ set_target()

void meshlib::MetricToAStarPenalty::set_target ( value:meshlib::Vector3f )

Modifies a member variable of class MR::MetricToAStarPenalty named target.

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

◆ target()

auto meshlib::MetricToAStarPenalty::target ( ) const -> &meshlib::Vector3f

Returns a pointer to a member variable of class MR::MetricToAStarPenalty named target.

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

◆ target_mut()

auto meshlib::MetricToAStarPenalty::target_mut ( ) -> &mut meshlib::Vector3f

Returns a mutable pointer to a member variable of class MR::MetricToAStarPenalty named target.

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


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