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

Public Member Functions

auto assign_from_another (_other:&meshlib::Sphere3d) -> &mut meshlib::Sphere3d
auto project (x:&meshlib::Vector3d) const -> meshlib::Vector3d
auto distance (x:&meshlib::Vector3d) const -> f64
auto distance_sq (x:&meshlib::Vector3d) const -> f64
auto center () const -> &meshlib::Vector3d
auto center_mut () -> &mut meshlib::Vector3d
void set_center (value:meshlib::Vector3d)
auto radius () const -> &f64
auto radius_mut () -> &mut f64
void set_radius (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Sphere3d >
static auto construct_from_another (_other:&meshlib::Sphere3d) -> meshlib::Owned< meshlib::Sphere3d >
static auto construct (c:&meshlib::Vector3d, r:f64) -> meshlib::Owned< meshlib::Sphere3d >
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::Sphere3d.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ center()

auto meshlib::Sphere3d::center ( ) const -> &meshlib::Vector3d

Returns a pointer to a member variable of class MR::Sphere3d named center.

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

◆ center_mut()

auto meshlib::Sphere3d::center_mut ( ) -> &mut meshlib::Vector3d

Returns a mutable pointer to a member variable of class MR::Sphere3d named center.

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

◆ construct()

auto meshlib::Sphere3d::construct ( c:&meshlib::Vector3d ,
r:f64  ) -> meshlib::Owned< meshlib::Sphere3d >
static

Generated from constructor MR::Sphere3d::Sphere3d.

Calls MR_Sphere3d_Construct(). The reference to the parameter c might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Sphere3d::Sphere3d.

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

◆ distance()

auto meshlib::Sphere3d::distance ( x:&meshlib::Vector3d ) const -> f64

returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere3d::distance.

Calls MR_Sphere3d_distance().

◆ distance_sq()

auto meshlib::Sphere3d::distance_sq ( x:&meshlib::Vector3d ) const -> f64

returns squared distance from given point to this sphere Generated from method MR::Sphere3d::distanceSq.

Calls MR_Sphere3d_distanceSq().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Sphere3d_DefaultConstruct().

◆ project()

auto meshlib::Sphere3d::project ( x:&meshlib::Vector3d ) const -> meshlib::Vector3d

finds the closest point on sphere Generated from method MR::Sphere3d::project.

Calls MR_Sphere3d_project().

◆ radius()

auto meshlib::Sphere3d::radius ( ) const -> &f64

Returns a pointer to a member variable of class MR::Sphere3d named radius.

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

◆ radius_mut()

auto meshlib::Sphere3d::radius_mut ( ) -> &mut f64

Returns a mutable pointer to a member variable of class MR::Sphere3d named radius.

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

◆ set_center()

void meshlib::Sphere3d::set_center ( value:meshlib::Vector3d )

Modifies a member variable of class MR::Sphere3d named center.

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

◆ set_radius()

void meshlib::Sphere3d::set_radius ( value:f64 )

Modifies a member variable of class MR::Sphere3d named radius.

Calls MR_Sphere3d_Set_radius().


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