Package javaforce.gl
Class Frustum
java.lang.Object
javaforce.gl.Frustum
Represents the frustum (viewable area of a perspective)
- Author:
- pquiring
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTests if box is within frustum.intvoidprint()voidsetPerspecive(float angle, float ratio, float near, float far) voidsetPosition(Vector3 p, Vector3 l, Vector3 u) intsphereInside(Vector3 p, float size) Tests if sphere is within frustum.
-
Field Details
-
OUTSIDE
public static final int OUTSIDE- See Also:
-
INTERSECT
public static final int INTERSECT- See Also:
-
INSIDE
public static final int INSIDE- See Also:
-
-
Constructor Details
-
Frustum
public Frustum()
-
-
Method Details
-
setPerspecive
public void setPerspecive(float angle, float ratio, float near, float far) -
setPosition
-
pointInside
-
sphereInside
Tests if sphere is within frustum.- Parameters:
p- = center if spheresize- = size of sphere (radius or diameter?)
-
boxInside
Tests if box is within frustum.- Parameters:
pts- = 8 points of box
-
print
public void print()
-