MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.Sphere3f Class Reference
Inheritance diagram for meshlib.Sphere3f:

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)

Detailed Description

Generated from class MR::Sphere3f.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ Sphere3f() [1/4]

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.

◆ Sphere3f() [2/4]

meshlib.Sphere3f.Sphere3f ( )

Constructs an empty (default-constructed) instance.

Calls MR_Sphere3f_DefaultConstruct().

◆ Sphere3f() [3/4]

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().

◆ Sphere3f() [4/4]

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().

Member Function Documentation

◆ assignFromAnother()

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().

◆ center()

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().

◆ distance()

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().

◆ distanceSq()

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().

◆ project()

meshlib.Vector3f meshlib.Sphere3f.project ( meshlib.Vector3f x)

finds the closest point on sphere Generated from method MR::Sphere3f::project.

Calls MR_Sphere3f_project().

◆ radius()

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().

◆ setCenter()

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().

◆ setRadius()

void meshlib.Sphere3f.setRadius ( float value)

Modifies a member variable of class MR::Sphere3f named radius.

Calls MR_Sphere3f_Set_radius().


The documentation for this class was generated from the following file: