|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.Sphere
public class Sphere
An efficient Sphere. Creation date: (06/02/2001 00:08:09)
| Constructor Summary | |
|---|---|
Sphere()
Creates a BoundingSphere. |
|
Sphere(float x,
float y,
float z,
float radius)
Creates a BoundingSphere. |
|
Sphere(Tuple3f center,
float radius)
Creates a BoundingSphere. |
|
| Method Summary | |
|---|---|
void |
combine(Body body)
Combines this Body with a bounding object. |
void |
combine(Body[] bos)
Combines this Body with an array of bounding objects. |
void |
combine(float px,
float py,
float pz)
Combines this Body with a point. |
void |
combine(Point3f point)
Combines this Body with a point. |
void |
combine(Point3f[] points)
Combine this Body with an array of points. |
boolean |
contains(float px,
float py,
float pz)
Tests, if the given point is inside of this Body. |
boolean |
contains(Point3f point)
Tests, if the given point is inside of this Body. |
boolean |
containsPlus(float px,
float py,
float pz,
float distance)
Checks, if the 2D-point is in the XY-projected circle. |
boolean |
containsXYPlus(float px,
float py,
float distance)
Checks, if the 2D-point is in the XY-projected circle. |
Point3f |
getCenter()
|
Tuple3f |
getCenter(Tuple3f center)
Gets this Sphere's center point. |
float |
getCenterX()
|
float |
getCenterY()
|
float |
getCenterZ()
|
float |
getRadius()
|
float |
getRadiusSquared()
|
void |
setCenter(float cx,
float cy,
float cz)
Sets this Sphere's center point. |
void |
setCenter(Tuple3f center)
Sets this Sphere's center point. |
void |
setRadius(float radius)
Sets the Sphere's radius. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sphere(float x,
float y,
float z,
float radius)
public Sphere(Tuple3f center,
float radius)
public Sphere()
| Method Detail |
|---|
public void setCenter(float cx,
float cy,
float cz)
cx - cy - cz - public void setCenter(Tuple3f center)
center - public Point3f getCenter()
public Tuple3f getCenter(Tuple3f center)
center - public float getCenterX()
public float getCenterY()
public float getCenterZ()
public void setRadius(float radius)
radius - public float getRadius()
public float getRadiusSquared()
public boolean containsXYPlus(float px,
float py,
float distance)
px - py - distance - the distance to (virtually) expand the radius by for this check
public boolean containsPlus(float px,
float py,
float pz,
float distance)
px - py - distance - the distance to (virtually) expand the radius by for this check
public boolean contains(float px,
float py,
float pz)
contains in interface Bodypublic boolean contains(Point3f point)
contains in interface Bodypublic void combine(Body body)
combine in interface Bodypublic void combine(Body[] bos)
combine in interface Body
public void combine(float px,
float py,
float pz)
combine in interface Bodypublic void combine(Point3f point)
combine in interface Bodypublic void combine(Point3f[] points)
combine in interface Bodypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||