Package ch.bailu.gtk.graphene
Klasse Sphere
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.graphene.Sphere
- Alle implementierten Schnittstellen:
PointerInterface
A sphere, represented by its center and radius.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic SphereAllocates a new #graphene_sphere_t.booleancontainsPoint(Point3D point) Checks whether the given @point is contained in the volume
of a #graphene_sphere_t.floatComputes the distance of the given @point from the surface of
a #graphene_sphere_t.booleanChecks whether two #graphene_sphere_t are equal.voidfree()Frees the resources allocated by graphene_sphere_alloc().voidgetBoundingBox(Box box) Computes the bounding box capable of containing the
given #graphene_sphere_t.voidRetrieves the coordinates of the center of a #graphene_sphere_t.static ClassHandlerfloatstatic intstatic longstatic TypeSystem.TypeSizefloatRetrieves the radius of a #graphene_sphere_t.static longstatic TypeSystem.TypeSizeInitializes the given #graphene_sphere_t with the given @center and @radius.booleanisEmpty()Checks whether the sphere has a zero radius.voidTranslates the center of the given #graphene_sphere_t using the @point
coordinates as the delta of the translation.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
CENTER
Private field: direct-type- Siehe auch:
-
RADIUS
- Siehe auch:
-
-
Konstruktordetails
-
Sphere
-
Sphere
public Sphere()
-
-
Methodendetails
-
getClassHandler
-
getFieldRadius
public float getFieldRadius() -
allocSphere
Allocates a new #graphene_sphere_t.
The contents of the newly allocated structure are undefined.- Gibt zurück:
- the newly allocated #graphene_sphere_t. Use graphene_sphere_free() to free the resources allocated by this function
-
containsPoint
Checks whether the given @point is contained in the volume
of a #graphene_sphere_t.- Parameter:
point- a #graphene_point3d_t- Gibt zurück:
- `true` if the sphere contains the point
-
distance
Computes the distance of the given @point from the surface of
a #graphene_sphere_t.- Parameter:
point- a #graphene_point3d_t- Gibt zurück:
- the distance of the point
-
equal
Checks whether two #graphene_sphere_t are equal.- Parameter:
b- a #graphene_sphere_t- Gibt zurück:
- `true` if the spheres are equal
-
free
public void free()Frees the resources allocated by graphene_sphere_alloc(). -
getBoundingBox
Computes the bounding box capable of containing the
given #graphene_sphere_t.- Parameter:
box- return location for the bounding box
-
getCenter
Retrieves the coordinates of the center of a #graphene_sphere_t.- Parameter:
center- return location for the coordinates of the center
-
getRadius
public float getRadius()Retrieves the radius of a #graphene_sphere_t.- Gibt zurück:
-
init
Initializes the given #graphene_sphere_t with the given @center and @radius.- Parameter:
center- the coordinates of the center of the sphere, or %NULL for a center in (0, 0, 0)radius- the radius of the sphere- Gibt zurück:
- the initialized #graphene_sphere_t
-
isEmpty
public boolean isEmpty()Checks whether the sphere has a zero radius.- Gibt zurück:
- `true` if the sphere is empty
-
translate
Translates the center of the given #graphene_sphere_t using the @point
coordinates as the delta of the translation.- Parameter:
point- the coordinates of the translationres- return location for the translated sphere
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-