Package com.jogamp.opengl.math.geom
Class Frustum.Plane
- java.lang.Object
-
- com.jogamp.opengl.math.geom.Frustum.Plane
-
-
Constructor Summary
Constructors Constructor Description Plane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
distanceTo(float[] p)
Return distance of plane to given point, seedistanceTo(float, float, float)
.float
distanceTo(float x, float y, float z)
Return signed distance of plane to given point.String
toString()
-
-
-
Method Detail
-
distanceTo
public final float distanceTo(float x, float y, float z)
Return signed distance of plane to given point.- If dist < 0 , then the point p lies in the negative halfspace.
- If dist = 0 , then the point p lies in the plane.
- If dist > 0 , then the point p lies in the positive halfspace.
Positive halfspace is where the plane’s normals vector points into.
Negative halfspace is the other side of the plane, i.e. *-1
-
distanceTo
public final float distanceTo(float[] p)
Return distance of plane to given point, seedistanceTo(float, float, float)
.
-
-