|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.spatial.bodies.Body
org.openmali.spatial.bodies.Sphere
public class Sphere
An efficient Sphere. Creation date: (06/02/2001 00:08:09)
| Field Summary |
|---|
| Fields inherited from class org.openmali.spatial.bodies.Body |
|---|
centerX, centerY, centerZ, distComputed, maxCenterDist, maxCenterDistSquared |
| 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(BodyInterface body)
Combines this Body with a bounding object. |
void |
combine(BodyInterface[] 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()
|
float |
getRadius()
|
float |
getRadiusSquared()
|
void |
setRadius(float radius)
Sets the Sphere's radius. |
java.lang.String |
toString()
|
| Methods inherited from class org.openmali.spatial.bodies.Body |
|---|
getCenter, getCenterX, getCenterY, getCenterZ, getMaxCenterDistance, getMaxCenterDistanceSquared, setCenter, setCenter, setMaxCenterDistanceSquared |
| 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 final Point3f getCenter()
public void setRadius(float radius)
radius - public final float getRadius()
public final 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 BodyInterfacepublic boolean contains(Point3f point)
contains in interface BodyInterfacepublic void combine(BodyInterface body)
combine in interface BodyInterfacepublic void combine(BodyInterface[] bos)
combine in interface BodyInterface
public void combine(float px,
float py,
float pz)
combine in interface BodyInterfacepublic void combine(Point3f point)
combine in interface BodyInterfacepublic void combine(Point3f[] points)
combine in interface BodyInterfacepublic 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 | |||||||||