|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jogamp.opengl.math.geom.Frustum.Plane
public static class Frustum.Plane
Plane equation := dot(n, x - p) = 0 -> ax + bc + cx + d == 0
In order to work w/ isOutside(..) methods,
the normals have to point to the inside of the frustum.
| Field Summary | |
|---|---|
float |
d
Distance to origin |
float[] |
n
Normal of the plane |
| Constructor Summary | |
|---|---|
Frustum.Plane()
|
|
| Method Summary | |
|---|---|
float |
distanceTo(float[] p)
Return distance of plane to given point, see distanceTo(float, float, float). |
float |
distanceTo(float x,
float y,
float z)
Return signed distance of plane to given point. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final float[] n
public float d
| Constructor Detail |
|---|
public Frustum.Plane()
| Method Detail |
|---|
public final float distanceTo(float x,
float y,
float z)
Positive halfspace is where the plane’s normals vector points into.
Negative halfspace is the other side of the plane, i.e. *-1
public final float distanceTo(float[] p)
distanceTo(float, float, float).
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||