Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Sphere2d) -> &mut meshlib::Sphere2d |
| auto | project (x:&meshlib::Vector2d) const -> meshlib::Vector2d |
| auto | distance (x:&meshlib::Vector2d) const -> f64 |
| auto | distance_sq (x:&meshlib::Vector2d) const -> f64 |
| auto | center () const -> &meshlib::Vector2d |
| auto | center_mut () -> &mut meshlib::Vector2d |
| void | set_center (value:meshlib::Vector2d) |
| auto | radius () const -> &f64 |
| auto | radius_mut () -> &mut f64 |
| void | set_radius (value:f64) |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::Sphere2d > |
| static auto | construct_from_another (_other:&meshlib::Sphere2d) -> meshlib::Owned< meshlib::Sphere2d > |
| static auto | construct (c:&meshlib::Vector2d, r:f64) -> meshlib::Owned< meshlib::Sphere2d > |
| 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::Sphere2d.
Generated from class MR::Sphere2d. Heap-allocated instances are held in Owned<Sphere2d>.
| auto meshlib::Sphere2d::assign_from_another | ( | _other:&meshlib::Sphere2d | ) | -> &mut meshlib::Sphere2d |
Generated from method MR::Sphere2d::operator=.
Calls MR_Sphere2d_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::Sphere2d::center | ( | ) | const -> &meshlib::Vector2d |
Returns a pointer to a member variable of class MR::Sphere2d named center.
Calls MR_Sphere2d_Get_center(). The reference to this object might be preserved as the return value.
| auto meshlib::Sphere2d::center_mut | ( | ) | -> &mut meshlib::Vector2d |
Returns a mutable pointer to a member variable of class MR::Sphere2d named center.
Calls MR_Sphere2d_GetMutable_center(). The reference to this object might be preserved as the return value.
|
static |
Generated from constructor MR::Sphere2d::Sphere2d.
Calls MR_Sphere2d_Construct(). The reference to the parameter c might be preserved in the constructed object.
|
static |
Generated from constructor MR::Sphere2d::Sphere2d.
Calls MR_Sphere2d_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Sphere2d::distance | ( | x:&meshlib::Vector2d | ) | const -> f64 |
returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside Generated from method MR::Sphere2d::distance.
Calls MR_Sphere2d_distance().
| auto meshlib::Sphere2d::distance_sq | ( | x:&meshlib::Vector2d | ) | const -> f64 |
returns squared distance from given point to this sphere Generated from method MR::Sphere2d::distanceSq.
Calls MR_Sphere2d_distanceSq().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Sphere2d_DefaultConstruct().
| auto meshlib::Sphere2d::project | ( | x:&meshlib::Vector2d | ) | const -> meshlib::Vector2d |
finds the closest point on sphere Generated from method MR::Sphere2d::project.
Calls MR_Sphere2d_project().
| auto meshlib::Sphere2d::radius | ( | ) | const -> &f64 |
Returns a pointer to a member variable of class MR::Sphere2d named radius.
Calls MR_Sphere2d_Get_radius(). The reference to this object might be preserved as the return value.
| auto meshlib::Sphere2d::radius_mut | ( | ) | -> &mut f64 |
Returns a mutable pointer to a member variable of class MR::Sphere2d named radius.
Calls MR_Sphere2d_GetMutable_radius(). The reference to this object might be preserved as the return value.
| void meshlib::Sphere2d::set_center | ( | value:meshlib::Vector2d | ) |
Modifies a member variable of class MR::Sphere2d named center.
Calls MR_Sphere2d_Set_center(). The reference to the parameter value might be preserved in this object in element center.
| void meshlib::Sphere2d::set_radius | ( | value:f64 | ) |
Modifies a member variable of class MR::Sphere2d named radius.
Calls MR_Sphere2d_Set_radius().