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

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)

Detailed Description

Generated from class MR::Sphere2f.

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

Constructor & Destructor Documentation

◆ Sphere2f() [1/4]

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.

◆ Sphere2f() [2/4]

meshlib.Sphere2f.Sphere2f ( )

Constructs an empty (default-constructed) instance.

Calls MR_Sphere2f_DefaultConstruct().

◆ Sphere2f() [3/4]

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

◆ Sphere2f() [4/4]

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

Member Function Documentation

◆ assignFromAnother()

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

◆ center()

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

◆ distance()

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

◆ distanceSq()

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

◆ project()

meshlib.Vector2f meshlib.Sphere2f.project ( meshlib.Vector2f x)

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

Calls MR_Sphere2f_project().

◆ radius()

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

◆ setCenter()

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

◆ setRadius()

void meshlib.Sphere2f.setRadius ( float value)

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

Calls MR_Sphere2f_Set_radius().


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