Class dnx.geom.Projection
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.geom.Projection
java.lang.Object
|
+----dnx.geom.Projection
- public class Projection
- extends Object
- implements Cloneable, Copyable
-
aspectRatio
- Ratio of width to height of the view window.
-
BOUNDING_BOX_INSIDE
-
-
BOUNDING_BOX_INTERSECTS
-
-
BOUNDING_BOX_OUTSIDE
-
-
far
- Distance from the eye to the far clipping plane.
-
near
- Distance from the eye to the near clipping plane.
-
Projection()
-
-
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)
-
-
getAspectRatio()
-
-
getFarPlane()
-
-
getNDCToViewerMatrix(Matrix4)
- Get the matrix to convert screen space coordinates to viewer space
coordinates.
-
getNearPlane()
-
-
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 screen space
coordinates.
-
setAspectRatio(float)
- Set the aspect ratio of the view window
-
setNearAndFarPlanes(float, float)
- Set the distance from the eye of the near and far clipping
planes.
BOUNDING_BOX_INSIDE
public final static int BOUNDING_BOX_INSIDE
BOUNDING_BOX_OUTSIDE
public final static int BOUNDING_BOX_OUTSIDE
BOUNDING_BOX_INTERSECTS
public final static int BOUNDING_BOX_INTERSECTS
near
protected float near
- Distance from the eye to the near clipping plane.
far
protected float far
- Distance from the eye to the far clipping plane.
aspectRatio
protected float aspectRatio
- Ratio of width to height of the view window.
Projection
public Projection()
setAspectRatio
public void setAspectRatio(float aspectRatio)
- Set the aspect ratio of the view window
getAspectRatio
public float getAspectRatio()
setNearAndFarPlanes
public void setNearAndFarPlanes(float near,
float far)
- Set the distance from the eye of the near and far clipping
planes. If far <= near or if near <= 0, an IllegalArgument
exception will be thrown.
getFarPlane
public float getFarPlane()
getNearPlane
public float getNearPlane()
getRay
public abstract 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.)
getViewerToNDCMatrix
public abstract void getViewerToNDCMatrix(Matrix4 m)
- Get the matrix to convert viewer space coordinates to screen space
coordinates.
getNDCToViewerMatrix
public abstract void getNDCToViewerMatrix(Matrix4 m)
- Get the matrix to convert screen space coordinates to viewer space
coordinates.
boundingBoxIntersection
public abstract int boundingBoxIntersection(BoundingBox3 bbox)
- Determine whether a bounding box lies completely inside,
completely outside, or partially outside the view
volume defined by the projection.
boundingBoxOutside
public boolean boundingBoxOutside(BoundingBox3 bbox)
clone
public abstract Object clone()
- Overrides:
- clone in class Object
copy
public void copy(Copyable c)
All Packages Class Hierarchy This Package Previous Next Index