Class dnx.geom.PerspectiveProjection
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.geom.PerspectiveProjection
java.lang.Object
|
+----dnx.geom.Projection
|
+----dnx.geom.PerspectiveProjection
- public class PerspectiveProjection
- extends Projection
-
PerspectiveProjection()
-
-
boundingBoxIntersection(BoundingBox3)
- Determine whether a bounding box lies completely inside,
completely outside, or partially outside the view
volume defined by the projection.
-
boundingBoxOutside(BoundingBox3)
-
-
clone()
-
-
copy(Copyable)
-
-
getFOV()
-
-
getNDCToViewerMatrix(Matrix4)
- Get the matrix to convert to normalized screen space coordinates
to viewer coordinates.
-
getRay(float, float, Ray3)
- Convert a point in normalized screen coordinates to a
ray.
-
getViewerToNDCMatrix(Matrix4)
- Get the matrix to convert viewer space coordinates to normalized
screen space coordinates.
-
setFOV(float)
-
-
toString()
-
PerspectiveProjection
public PerspectiveProjection()
setFOV
public void setFOV(float angle)
getFOV
public float getFOV()
getRay
public void getRay(float x,
float y,
Ray3 ray)
- Convert a point in normalized screen coordinates to a
ray. (Normalized screen coordinates range from -1 to +1
in X and Y, and from 0 to 1 in Z.)
- Overrides:
- getRay in class Projection
getViewerToNDCMatrix
public void getViewerToNDCMatrix(Matrix4 m)
- Get the matrix to convert viewer space coordinates to normalized
screen space coordinates.
- Overrides:
- getViewerToNDCMatrix in class Projection
getNDCToViewerMatrix
public void getNDCToViewerMatrix(Matrix4 m)
- Get the matrix to convert to normalized screen space coordinates
to viewer coordinates.
- Overrides:
- getNDCToViewerMatrix in class Projection
boundingBoxIntersection
public int boundingBoxIntersection(BoundingBox3 bbox)
- Determine whether a bounding box lies completely inside,
completely outside, or partially outside the view
volume defined by the projection.
- Overrides:
- boundingBoxIntersection in class Projection
boundingBoxOutside
public boolean boundingBoxOutside(BoundingBox3 bbox)
- Overrides:
- boundingBoxOutside in class Projection
clone
public Object clone()
- Overrides:
- clone in class Projection
copy
public void copy(Copyable c)
- Overrides:
- copy in class Projection
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index