Public Member Functions | |
| Sphere2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| Sphere2f () | |
| Sphere2f (meshlib.Sphere2f _other) | |
| Sphere2f (meshlib.Vector2f c, float r) | |
| meshlib.Sphere2f | assignFromAnother (meshlib.Sphere2f _other) |
| meshlib.Vector2f | project (meshlib.Vector2f x) |
| float | distance (meshlib.Vector2f x) |
| float | distanceSq (meshlib.Vector2f x) |
| meshlib.Vector2f | center () |
| void | setCenter (meshlib.Vector2f value) |
| float | radius () |
| void | setRadius (float value) |
| Public Member Functions inherited from meshlib.CppObject | |
| final java.lang.foreign.MemorySegment | rawPointer () |
| final boolean | isOwned () |
| final void | close () |
| final java.lang.foreign.MemorySegment | release () |
Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
Generated from class MR::Sphere2f.
Instances created here own their C++ objects, see CppObject.
| meshlib.Sphere2f.Sphere2f | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.Sphere2f.Sphere2f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Sphere2f_DefaultConstruct().
| meshlib.Sphere2f.Sphere2f | ( | meshlib.Sphere2f | _other | ) |
Generated from constructor MR::Sphere2f::Sphere2f. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_Sphere2f_ConstructFromAnother().
| meshlib.Sphere2f.Sphere2f | ( | meshlib.Vector2f | c, |
| float | r ) |
Generated from constructor MR::Sphere2f::Sphere2f. The reference to the parameter c might be preserved in the constructed object.
Calls MR_Sphere2f_Construct().
| meshlib.Sphere2f meshlib.Sphere2f.assignFromAnother | ( | meshlib.Sphere2f | _other | ) |
Generated from method MR::Sphere2f::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_Sphere2f_AssignFromAnother().
| meshlib.Vector2f meshlib.Sphere2f.center | ( | ) |
Returns a pointer to a member variable of class MR::Sphere2f named center. The reference to this object might be preserved as the return value.
Calls MR_Sphere2f_Get_center().
| float meshlib.Sphere2f.distance | ( | meshlib.Vector2f | x | ) |
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().
| float meshlib.Sphere2f.distanceSq | ( | meshlib.Vector2f | x | ) |
returns squared distance from given point to this sphere Generated from method MR::Sphere2f::distanceSq.
Calls MR_Sphere2f_distanceSq().
| meshlib.Vector2f meshlib.Sphere2f.project | ( | meshlib.Vector2f | x | ) |
finds the closest point on sphere Generated from method MR::Sphere2f::project.
Calls MR_Sphere2f_project().
| float meshlib.Sphere2f.radius | ( | ) |
Returns a pointer to a member variable of class MR::Sphere2f named radius. The reference to this object might be preserved as the return value.
Calls MR_Sphere2f_Get_radius().
| void meshlib.Sphere2f.setCenter | ( | meshlib.Vector2f | value | ) |
Modifies a member variable of class MR::Sphere2f named center. The reference to the parameter value might be preserved in this object in element center.
Calls MR_Sphere2f_Set_center().
| void meshlib.Sphere2f.setRadius | ( | float | value | ) |
Modifies a member variable of class MR::Sphere2f named radius.
Calls MR_Sphere2f_Set_radius().