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

Variable Index

 o aspectRatio
Ratio of width to height of the view window.
 o BOUNDING_BOX_INSIDE
 o BOUNDING_BOX_INTERSECTS
 o BOUNDING_BOX_OUTSIDE
 o far
Distance from the eye to the far clipping plane.
 o near
Distance from the eye to the near clipping plane.

Constructor Index

 o Projection()

Method Index

 o boundingBoxIntersection(BoundingBox3)
Determine whether a bounding box lies completely inside, completely outside, or partially outside the view volume defined by the projection.
 o boundingBoxOutside(BoundingBox3)
 o clone()
 o copy(Copyable)
 o getAspectRatio()
 o getFarPlane()
 o getNDCToViewerMatrix(Matrix4)
Get the matrix to convert screen space coordinates to viewer space coordinates.
 o getNearPlane()
 o getRay(float, float, Ray3)
Convert a point in normalized screen coordinates to a ray.
 o getViewerToNDCMatrix(Matrix4)
Get the matrix to convert viewer space coordinates to screen space coordinates.
 o setAspectRatio(float)
Set the aspect ratio of the view window
 o setNearAndFarPlanes(float, float)
Set the distance from the eye of the near and far clipping planes.

Variables

 o BOUNDING_BOX_INSIDE
  public final static int BOUNDING_BOX_INSIDE
 o BOUNDING_BOX_OUTSIDE
  public final static int BOUNDING_BOX_OUTSIDE
 o BOUNDING_BOX_INTERSECTS
  public final static int BOUNDING_BOX_INTERSECTS
 o near
  protected float near
Distance from the eye to the near clipping plane.
 o far
  protected float far
Distance from the eye to the far clipping plane.
 o aspectRatio
  protected float aspectRatio
Ratio of width to height of the view window.

Constructors

 o Projection
  public Projection()

Methods

 o setAspectRatio
  public void setAspectRatio(float aspectRatio)
Set the aspect ratio of the view window
 o getAspectRatio
  public float getAspectRatio()
 o 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.
 o getFarPlane
  public float getFarPlane()
 o getNearPlane
  public float getNearPlane()
 o 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.)
 o getViewerToNDCMatrix
  public abstract void getViewerToNDCMatrix(Matrix4 m)
Get the matrix to convert viewer space coordinates to screen space coordinates.
 o getNDCToViewerMatrix
  public abstract void getNDCToViewerMatrix(Matrix4 m)
Get the matrix to convert screen space coordinates to viewer space coordinates.
 o 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.
 o boundingBoxOutside
  public boolean boundingBoxOutside(BoundingBox3 bbox)
 o clone
  public abstract Object clone()
Overrides:
clone in class Object
 o copy
  public void copy(Copyable c)

All Packages  Class Hierarchy  This Package  Previous  Next  Index