Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Sphere2f) -> &mut meshlib::Sphere2f |
| auto | project (x:&meshlib::Vector2f) const -> meshlib::Vector2f |
| auto | distance (x:&meshlib::Vector2f) const -> f32 |
| auto | distance_sq (x:&meshlib::Vector2f) const -> f32 |
| auto | center () const -> &meshlib::Vector2f |
| auto | center_mut () -> &mut meshlib::Vector2f |
| void | set_center (value:meshlib::Vector2f) |
| auto | radius () const -> &f32 |
| auto | radius_mut () -> &mut f32 |
| void | set_radius (value:f32) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::Sphere2f > |
| static auto | construct_from_another (_other:&meshlib::Sphere2f) -> meshlib::Owned< meshlib::Sphere2f > |
| static auto | construct (c:&meshlib::Vector2f, r:f32) -> meshlib::Owned< meshlib::Sphere2f > |
| 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::Sphere2f.
Generated from class MR::Sphere2f. Heap-allocated instances are held in Owned<Sphere2f>.
| auto meshlib::Sphere2f::assign_from_another | ( | _other:&meshlib::Sphere2f | ) | -> &mut meshlib::Sphere2f |
Generated from method MR::Sphere2f::operator=.
Calls MR_Sphere2f_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::Sphere2f::center | ( | ) | const -> &meshlib::Vector2f |
Returns a pointer to a member variable of class MR::Sphere2f named center.
Calls MR_Sphere2f_Get_center(). The reference to this object might be preserved as the return value.
| auto meshlib::Sphere2f::center_mut | ( | ) | -> &mut meshlib::Vector2f |
Returns a mutable pointer to a member variable of class MR::Sphere2f named center.
Calls MR_Sphere2f_GetMutable_center(). The reference to this object might be preserved as the return value.
|
static |
Generated from constructor MR::Sphere2f::Sphere2f.
Calls MR_Sphere2f_Construct(). The reference to the parameter c might be preserved in the constructed object.
|
static |
Generated from constructor MR::Sphere2f::Sphere2f.
Calls MR_Sphere2f_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Sphere2f::distance | ( | x:&meshlib::Vector2f | ) | const -> f32 |
returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere2f::distance.
Calls MR_Sphere2f_distance().
| auto meshlib::Sphere2f::distance_sq | ( | x:&meshlib::Vector2f | ) | const -> f32 |
returns squared distance from given point to this sphere Generated from method MR::Sphere2f::distanceSq.
Calls MR_Sphere2f_distanceSq().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Sphere2f_DefaultConstruct().
| auto meshlib::Sphere2f::project | ( | x:&meshlib::Vector2f | ) | const -> meshlib::Vector2f |
finds the closest point on sphere Generated from method MR::Sphere2f::project.
Calls MR_Sphere2f_project().
| auto meshlib::Sphere2f::radius | ( | ) | const -> &f32 |
Returns a pointer to a member variable of class MR::Sphere2f named radius.
Calls MR_Sphere2f_Get_radius(). The reference to this object might be preserved as the return value.
| auto meshlib::Sphere2f::radius_mut | ( | ) | -> &mut f32 |
Returns a mutable pointer to a member variable of class MR::Sphere2f named radius.
Calls MR_Sphere2f_GetMutable_radius(). The reference to this object might be preserved as the return value.
| void meshlib::Sphere2f::set_center | ( | value:meshlib::Vector2f | ) |
Modifies a member variable of class MR::Sphere2f named center.
Calls MR_Sphere2f_Set_center(). The reference to the parameter value might be preserved in this object in element center.
| void meshlib::Sphere2f::set_radius | ( | value:f32 | ) |
Modifies a member variable of class MR::Sphere2f named radius.
Calls MR_Sphere2f_Set_radius().