|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz3d.BoundingSphere
public class BoundingSphere
A bounding sphere.
Field Summary | |
---|---|
private javax.vecmath.Point3f |
center
|
private float |
radius
|
Constructor Summary | |
---|---|
BoundingSphere(BoundingSphere sphere)
|
|
BoundingSphere(javax.vecmath.Point3f center,
float radius)
Creates a BoundingSphere with the specified center and radius. |
Method Summary | |
---|---|
javax.vecmath.Point3f |
getCenterRef()
|
float |
getRadius()
|
boolean |
intersects(javax.vecmath.Point3f rayOrigin,
javax.vecmath.Vector3f rayDirection)
Whether or not the specified ray intersects with this BoundingSphere. |
BoundingSphere |
merge(BoundingSphere sphere)
Merge this BoudingSphere with the specified BoudingSphere storing the results in this BoundingSphere. |
java.lang.String |
toString()
|
BoundingSphere |
transform(float scale,
javax.vecmath.Quat4f rotate,
javax.vecmath.Vector3f translate)
Transform this bounding sphere. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private javax.vecmath.Point3f center
private float radius
Constructor Detail |
---|
public BoundingSphere(javax.vecmath.Point3f center, float radius)
center
- radius
- public BoundingSphere(BoundingSphere sphere)
Method Detail |
---|
public javax.vecmath.Point3f getCenterRef()
public float getRadius()
public boolean intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection)
rayOrigin
- the ray's originrayDirection
- the ray's direction
public BoundingSphere transform(float scale, javax.vecmath.Quat4f rotate, javax.vecmath.Vector3f translate)
scale
- rotate
- translate
-
public BoundingSphere merge(BoundingSphere sphere)
sphere
- the sphere to merge without
- the box to store the result in.
public 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 |