|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csgeom.sphere.csSphere
This class represents a sphere.
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csSphere()
Create a new empty sphere at (0,0,0). |
|
csSphere(csSphere s)
Copy Constructor. |
|
csSphere(csVector3 center,
float radius)
Create a new sphere. |
|
csSphere(iPointer nPointer)
Create a java csSphere object which points to the native csSphere nPointer. |
Method Summary | |
csSphere |
add(csSphere s)
Calculate the union of this sphere and another one. |
static csSphere |
add(csSphere s1,
csSphere s2)
Calculate the union of two spheres. |
csVector3 |
getCenter()
Get the center of this sphere. |
float |
getRadius()
Get the radius of this sphere. |
protected boolean |
isNativePointerValidSafe(long nPointer)
|
protected void |
nDelete(long pointer)
|
void |
setCenter(csVector3 c)
Set the center of this sphere. |
void |
setRadius(float r)
Set the radius of this sphere. |
void |
union(csVector3 ocenter,
float oradius)
Calculate the union of this sphere and another. |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public csSphere(iPointer nPointer)
nPointer
- public csSphere()
public csSphere(csVector3 center, float radius)
center
- radius
- public csSphere(csSphere s)
s
- Method Detail |
protected void nDelete(long pointer)
nDelete
in class csNativeObject
csNativeObject.nDelete(long)
protected boolean isNativePointerValidSafe(long nPointer)
isNativePointerValidSafe
in class csNativeObject
crystalspace.jbind.impl.csNativeObject#isNativePointerValidSafe()
public final csVector3 getCenter()
public final void setCenter(csVector3 c)
c
- public final float getRadius()
public final void setRadius(float r)
r
- public final void union(csVector3 ocenter, float oradius)
ocenter
- oradius
- public final csSphere add(csSphere s)
s
-
public static final csSphere add(csSphere s1, csSphere s2)
s1
- s2
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |