Public Member Functions | |
| Ball2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| Ball2f () | |
| Ball2f (meshlib.Vector2f center, float radiusSq) | |
| Ball2f (meshlib.Ball2f _other) | |
| meshlib.Ball2f | assignFromAnother (meshlib.Ball2f _other) |
| boolean | inside (meshlib.Vector2f pt) |
| boolean | outside (meshlib.Vector2f pt) |
| meshlib.Vector2f | center () |
| void | setCenter (meshlib.Vector2f value) |
| float | radiusSq () |
| void | setRadiusSq (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 () |
Static Public Member Functions | |
| static int | elements () |
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) | |
a ball = points surrounded by a sphere in arbitrary space with vector type V Generated from class MR::Ball2f.
Instances created here own their C++ objects, see CppObject.
| meshlib.Ball2f.Ball2f | ( | 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.Ball2f.Ball2f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Ball2f_DefaultConstruct().
| meshlib.Ball2f.Ball2f | ( | meshlib.Vector2f | center, |
| float | radiusSq ) |
Constructs MR::Ball2f elementwise. The reference to the parameter center might be preserved in the constructed object.
Calls MR_Ball2f_ConstructFrom().
| meshlib.Ball2f.Ball2f | ( | meshlib.Ball2f | _other | ) |
Generated from constructor MR::Ball2f::Ball2f. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_Ball2f_ConstructFromAnother().
| meshlib.Ball2f meshlib.Ball2f.assignFromAnother | ( | meshlib.Ball2f | _other | ) |
Generated from method MR::Ball2f::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_Ball2f_AssignFromAnother().
| meshlib.Vector2f meshlib.Ball2f.center | ( | ) |
< ball's center Returns a pointer to a member variable of class MR::Ball2f named center. The reference to this object might be preserved as the return value.
Calls MR_Ball2f_Get_center().
|
static |
Returns a pointer to a member variable of class MR::Ball2f named elements.
Calls MR_Ball2f_Get_elements().
| boolean meshlib.Ball2f.inside | ( | meshlib.Vector2f | pt | ) |
returns true if given point is strictly inside the ball (not on its spherical surface) Generated from method MR::Ball2f::inside.
Calls MR_Ball2f_inside().
| boolean meshlib.Ball2f.outside | ( | meshlib.Vector2f | pt | ) |
returns true if given point is strictly outside the ball (not on its spherical surface) Generated from method MR::Ball2f::outside.
Calls MR_Ball2f_outside().
| float meshlib.Ball2f.radiusSq | ( | ) |
< ball's squared radius Returns a pointer to a member variable of class MR::Ball2f named radiusSq. The reference to this object might be preserved as the return value.
Calls MR_Ball2f_Get_radiusSq().
| void meshlib.Ball2f.setCenter | ( | meshlib.Vector2f | value | ) |
< ball's center Modifies a member variable of class MR::Ball2f named center. The reference to the parameter value might be preserved in this object in element center.
Calls MR_Ball2f_Set_center().
| void meshlib.Ball2f.setRadiusSq | ( | float | value | ) |
< ball's squared radius Modifies a member variable of class MR::Ball2f named radiusSq.
Calls MR_Ball2f_Set_radiusSq().