Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Sphere3f) -> &mut meshlib::Sphere3f |
| auto | project (x:&meshlib::Vector3f) const -> meshlib::Vector3f |
| auto | distance (x:&meshlib::Vector3f) const -> f32 |
| auto | distance_sq (x:&meshlib::Vector3f) const -> f32 |
| auto | center () const -> &meshlib::Vector3f |
| auto | center_mut () -> &mut meshlib::Vector3f |
| void | set_center (value:meshlib::Vector3f) |
| auto | radius () const -> &f32 |
| auto | radius_mut () -> &mut f32 |
| void | set_radius (value:f32) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::Sphere3f > |
| static auto | construct_from_another (_other:&meshlib::Sphere3f) -> meshlib::Owned< meshlib::Sphere3f > |
| static auto | construct (c:&meshlib::Vector3f, r:f32) -> meshlib::Owned< meshlib::Sphere3f > |
| 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 |
Generated from class MR::Sphere3f.
Generated from class MR::Sphere3f. Heap-allocated instances are held in Owned<Sphere3f>.
| auto meshlib::Sphere3f::assign_from_another | ( | _other:&meshlib::Sphere3f | ) | -> &mut meshlib::Sphere3f |
Generated from method MR::Sphere3f::operator=.
Calls MR_Sphere3f_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::Sphere3f::center | ( | ) | const -> &meshlib::Vector3f |
Returns a pointer to a member variable of class MR::Sphere3f named center.
Calls MR_Sphere3f_Get_center(). The reference to this object might be preserved as the return value.
| auto meshlib::Sphere3f::center_mut | ( | ) | -> &mut meshlib::Vector3f |
Returns a mutable pointer to a member variable of class MR::Sphere3f named center.
Calls MR_Sphere3f_GetMutable_center(). The reference to this object might be preserved as the return value.
|
static |
Generated from constructor MR::Sphere3f::Sphere3f.
Calls MR_Sphere3f_Construct(). The reference to the parameter c might be preserved in the constructed object.
|
static |
Generated from constructor MR::Sphere3f::Sphere3f.
Calls MR_Sphere3f_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Sphere3f::distance | ( | x:&meshlib::Vector3f | ) | const -> f32 |
returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere3f::distance.
Calls MR_Sphere3f_distance().
| auto meshlib::Sphere3f::distance_sq | ( | x:&meshlib::Vector3f | ) | const -> f32 |
returns squared distance from given point to this sphere Generated from method MR::Sphere3f::distanceSq.
Calls MR_Sphere3f_distanceSq().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Sphere3f_DefaultConstruct().
| auto meshlib::Sphere3f::project | ( | x:&meshlib::Vector3f | ) | const -> meshlib::Vector3f |
finds the closest point on sphere Generated from method MR::Sphere3f::project.
Calls MR_Sphere3f_project().
| auto meshlib::Sphere3f::radius | ( | ) | const -> &f32 |
Returns a pointer to a member variable of class MR::Sphere3f named radius.
Calls MR_Sphere3f_Get_radius(). The reference to this object might be preserved as the return value.
| auto meshlib::Sphere3f::radius_mut | ( | ) | -> &mut f32 |
Returns a mutable pointer to a member variable of class MR::Sphere3f named radius.
Calls MR_Sphere3f_GetMutable_radius(). The reference to this object might be preserved as the return value.
| void meshlib::Sphere3f::set_center | ( | value:meshlib::Vector3f | ) |
Modifies a member variable of class MR::Sphere3f named center.
Calls MR_Sphere3f_Set_center(). The reference to the parameter value might be preserved in this object in element center.
| void meshlib::Sphere3f::set_radius | ( | value:f32 | ) |
Modifies a member variable of class MR::Sphere3f named radius.
Calls MR_Sphere3f_Set_radius().