MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Ball2f:

Public Member Functions

auto assign_from_another (_other:&meshlib::Ball2f) -> &mut meshlib::Ball2f
auto inside (pt:&meshlib::Vector2f) const -> bool
auto outside (pt:&meshlib::Vector2f) const -> bool
auto center () const -> &meshlib::Vector2f
auto center_mut () -> &mut meshlib::Vector2f
void set_center (value:meshlib::Vector2f)
auto radius_sq () const -> &f32
auto radius_sq_mut () -> &mut f32
void set_radius_sq (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Ball2f >
static auto construct_from (center:meshlib::Vector2f, radiusSq:f32) -> meshlib::Owned< meshlib::Ball2f >
static auto construct_from_another (_other:&meshlib::Ball2f) -> meshlib::Owned< meshlib::Ball2f >
static auto elements () -> *const core::ffi::c_int
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

a ball = points surrounded by a sphere in arbitrary space with vector type V Generated from class MR::Ball2f.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ center()

auto meshlib::Ball2f::center ( ) const -> &meshlib::Vector2f

< ball's center Returns a pointer to a member variable of class MR::Ball2f named center.

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

◆ center_mut()

auto meshlib::Ball2f::center_mut ( ) -> &mut meshlib::Vector2f

< ball's center Returns a mutable pointer to a member variable of class MR::Ball2f named center.

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

◆ construct_from()

auto meshlib::Ball2f::construct_from ( center:meshlib::Vector2f ,
radiusSq:f32  ) -> meshlib::Owned< meshlib::Ball2f >
static

Constructs MR::Ball2f elementwise.

Calls MR_Ball2f_ConstructFrom(). The reference to the parameter center might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Ball2f::Ball2f.

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

◆ elements()

auto meshlib::Ball2f::elements ( ) -> *const core::ffi::c_int
static

Returns a pointer to a member variable of class MR::Ball2f named elements.

Calls MR_Ball2f_Get_elements().

◆ inside()

auto meshlib::Ball2f::inside ( pt:&meshlib::Vector2f ) const -> bool

returns true if given point is strictly inside the ball (not on its spherical surface) Generated from method MR::Ball2f::inside.

Calls MR_Ball2f_inside().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Ball2f_DefaultConstruct().

◆ outside()

auto meshlib::Ball2f::outside ( pt:&meshlib::Vector2f ) const -> bool

returns true if given point is strictly outside the ball (not on its spherical surface) Generated from method MR::Ball2f::outside.

Calls MR_Ball2f_outside().

◆ radius_sq()

auto meshlib::Ball2f::radius_sq ( ) const -> &f32

< ball's squared radius Returns a pointer to a member variable of class MR::Ball2f named radiusSq.

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

◆ radius_sq_mut()

auto meshlib::Ball2f::radius_sq_mut ( ) -> &mut f32

< ball's squared radius Returns a mutable pointer to a member variable of class MR::Ball2f named radiusSq.

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

◆ set_center()

void meshlib::Ball2f::set_center ( value:meshlib::Vector2f )

< ball's center Modifies a member variable of class MR::Ball2f named center.

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

◆ set_radius_sq()

void meshlib::Ball2f::set_radius_sq ( value:f32 )

< ball's squared radius Modifies a member variable of class MR::Ball2f named radiusSq.

Calls MR_Ball2f_Set_radiusSq().


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