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 x, float y, float z)
Return signed distance of plane to given point.float
distanceTo(Vec3f p)
Return distance of plane to given point, seedistanceTo(float, float, float)
.String
toString()
-
-
-
Field Detail
-
n
public final Vec3f n
Normal of the plane
-
d
public float d
Distance to origin
-
-
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(Vec3f p)
Return distance of plane to given point, seedistanceTo(float, float, float)
.
-
-