Module imp3d

Class PerspectiveProjection

All Implemented Interfaces:
Manageable, Shareable
Direct Known Subclasses:
LensProjection

public class PerspectiveProjection extends Projection
  • Field Details

  • Constructor Details

    • PerspectiveProjection

      public PerspectiveProjection()
    • PerspectiveProjection

      public PerspectiveProjection(float fieldOfView, float aspect)
  • Method Details

    • getManageableType

      public ManageableType getManageableType()
    • setFieldOfView

      public void setFieldOfView(float fieldOfView)
    • clampFieldOfView

      public static float clampFieldOfView(float fieldOfView)
    • getFieldOfView

      public float getFieldOfView()
    • update

      protected void update()
      Specified by:
      update in class Projection
    • getTransformation

      protected void getTransformation(float near, float far, Matrix4d viewToClip, Matrix4d deviceToView)
      Specified by:
      getTransformation in class Projection
    • getScaleAt

      public float getScaleAt(float z)
      Specified by:
      getScaleAt in class Projection
    • getRayInViewCoordinates

      protected void getRayInViewCoordinates(float x, float y, Point3d origin, Vector3d direction, Matrix4d deviceToView, Tuple2d densities)
      Specified by:
      getRayInViewCoordinates in class Projection