|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Sphere
public class Sphere
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Sphere()
Standard constructor - creates a unit sphere around the origin. |
|
Sphere(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Sphere(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Sphere(IVector3 center,
float radius)
Constructor allowing arbitrary spheres. |
|
Sphere(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
IVector3 |
getCenter()
Returns the center point of the sphere. |
float |
getRadius()
Returns the radius of the sphere. |
boolean |
intersects(IAxisAlignedBox box)
Returns whether or not this sphere intersects a box. |
boolean |
intersects(IPlane plane)
Returns whether or not this sphere intersects a plane. |
boolean |
intersects(ISphere s)
Returns whether or not this sphere intersects another sphere. |
boolean |
intersects(IVector3 v)
Returns whether or not this sphere intersects a point. |
void |
setCenter(IVector3 center)
Sets the center point of the sphere. |
void |
setRadius(float radius)
Sets the radius of the sphere. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Sphere(InstancePointer p)
protected Sphere(InstancePointer p,
boolean remote)
public Sphere(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Sphere()
public Sphere(IVector3 center,
float radius)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic float getRadius()
getRadius in interface ISpherepublic void setRadius(float radius)
setRadius in interface ISpherepublic IVector3 getCenter()
getCenter in interface ISpherepublic void setCenter(IVector3 center)
setCenter in interface ISpherepublic boolean intersects(ISphere s)
intersects in interface ISpherepublic boolean intersects(IAxisAlignedBox box)
intersects in interface ISpherepublic boolean intersects(IPlane plane)
intersects in interface ISpherepublic boolean intersects(IVector3 v)
intersects in interface ISphere
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||