Public Member Functions | |
| Sphere3f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| Sphere3f () | |
| Sphere3f (meshlib.Sphere3f _other) | |
| Sphere3f (meshlib.Vector3f c, float r) | |
| meshlib.Sphere3f | assignFromAnother (meshlib.Sphere3f _other) |
| meshlib.Vector3f | project (meshlib.Vector3f x) |
| float | distance (meshlib.Vector3f x) |
| float | distanceSq (meshlib.Vector3f x) |
| meshlib.Vector3f | center () |
| void | setCenter (meshlib.Vector3f 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::Sphere3f.
Instances created here own their C++ objects, see CppObject.
| meshlib.Sphere3f.Sphere3f | ( | 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.Sphere3f.Sphere3f | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Sphere3f_DefaultConstruct().
| meshlib.Sphere3f.Sphere3f | ( | meshlib.Sphere3f | _other | ) |
Generated from constructor MR::Sphere3f::Sphere3f. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_Sphere3f_ConstructFromAnother().
| meshlib.Sphere3f.Sphere3f | ( | meshlib.Vector3f | c, |
| float | r ) |
Generated from constructor MR::Sphere3f::Sphere3f. The reference to the parameter c might be preserved in the constructed object.
Calls MR_Sphere3f_Construct().
| meshlib.Sphere3f meshlib.Sphere3f.assignFromAnother | ( | meshlib.Sphere3f | _other | ) |
Generated from method MR::Sphere3f::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_Sphere3f_AssignFromAnother().
| meshlib.Vector3f meshlib.Sphere3f.center | ( | ) |
Returns a pointer to a member variable of class MR::Sphere3f named center. The reference to this object might be preserved as the return value.
Calls MR_Sphere3f_Get_center().
| float meshlib.Sphere3f.distance | ( | meshlib.Vector3f | x | ) |
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().
| float meshlib.Sphere3f.distanceSq | ( | meshlib.Vector3f | x | ) |
returns squared distance from given point to this sphere Generated from method MR::Sphere3f::distanceSq.
Calls MR_Sphere3f_distanceSq().
| meshlib.Vector3f meshlib.Sphere3f.project | ( | meshlib.Vector3f | x | ) |
finds the closest point on sphere Generated from method MR::Sphere3f::project.
Calls MR_Sphere3f_project().
| float meshlib.Sphere3f.radius | ( | ) |
Returns a pointer to a member variable of class MR::Sphere3f named radius. The reference to this object might be preserved as the return value.
Calls MR_Sphere3f_Get_radius().
| void meshlib.Sphere3f.setCenter | ( | meshlib.Vector3f | value | ) |
Modifies a member variable of class MR::Sphere3f named center. The reference to the parameter value might be preserved in this object in element center.
Calls MR_Sphere3f_Set_center().
| void meshlib.Sphere3f.setRadius | ( | float | value | ) |
Modifies a member variable of class MR::Sphere3f named radius.
Calls MR_Sphere3f_Set_radius().