class CachedFrustum
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(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 and Description |
|---|
CachedFrustum()
Constructs and initializes a new default CachedFrustum
|
CachedFrustum(Vector4d[] planes)
Constructs and initializes a new CachedFrustum using the values
provided in the argument.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static final double EPSILON
Vector4d[] clipPlanes
Point3d[] verts
Point3d upper
Point3d lower
Point3d center
CachedFrustum(Vector4d[] planes)
planes - array specifying the frustum's clip plane positionCachedFrustum()
planes - array specifying the frustum's clip planespublic java.lang.String toString()
toString in class java.lang.Objectvoid 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)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.