|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.CachedFrustum
class CachedFrustum
The CachedFrustum class is used to pre compute data for a set of view frustum planes which allows more efficient intersection testing. The CachedFrustum caches data for frustums for effecient intersection testing.
Field Summary | |
---|---|
(package private) Point3d |
center
|
(package private) Vector4d[] |
clipPlanes
|
(package private) static double |
EPSILON
|
(package private) Point3d |
lower
|
(package private) Point3d |
upper
|
(package private) Point3d[] |
verts
|
Constructor Summary | |
---|---|
CachedFrustum()
Constructs and initializes a new default CachedFrustum |
|
CachedFrustum(Vector4d[] planes)
Constructs and initializes a new CachedFrustum using the values provided in the argument. |
Method Summary | |
---|---|
private void |
computeValues(Vector4d[] planes)
Computes cached values. |
private void |
computeVertex(int a,
int b,
int c,
Point3d vert)
|
(package private) void |
set(Vector4d[] planes)
Sets the values of the CachedFrustum based on a new set of frustum planes. |
java.lang.String |
toString()
Returns a string containing the values of the CachedFrustum. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final double EPSILON
Vector4d[] clipPlanes
Point3d[] verts
Point3d upper
Point3d lower
Point3d center
Constructor Detail |
---|
CachedFrustum(Vector4d[] planes)
planes
- array specifying the frustum's clip plane positionCachedFrustum()
planes
- array specifying the frustum's clip planesMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
void set(Vector4d[] planes)
planes
- array specifying the frustum's clip planesprivate void computeValues(Vector4d[] planes)
planes
- array specifying the frustum's clip planesprivate void computeVertex(int a, int b, int c, Point3d vert)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |