de.grogra.imp3d
Class PerspectiveProjection
java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp3d.Projection
de.grogra.imp3d.PerspectiveProjection
- All Implemented Interfaces:
- Manageable, Shareable
- Direct Known Subclasses:
- LensProjection
public class PerspectiveProjection
- extends Projection
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final PerspectiveProjection.Type $TYPE
fieldOfView
protected float fieldOfView
fieldOfView$FIELD
public static final SCOType.Field fieldOfView$FIELD
PerspectiveProjection
public PerspectiveProjection()
PerspectiveProjection
public PerspectiveProjection(float fieldOfView,
float aspect)
clampFieldOfView
public static float clampFieldOfView(float fieldOfView)
getFieldOfView
public float getFieldOfView()
getManageableType
public ManageableType getManageableType()
getRayInViewCoordinates
protected void getRayInViewCoordinates(float x,
float y,
Point3d origin,
Vector3d direction,
Matrix4d deviceToView,
Tuple2d densities)
- Specified by:
getRayInViewCoordinates
in class Projection
getScaleAt
public float getScaleAt(float z)
- Specified by:
getScaleAt
in class Projection
getTransformation
protected void getTransformation(float near,
float far,
Matrix4d viewToClip,
Matrix4d deviceToView)
- Specified by:
getTransformation
in class Projection
setFieldOfView
public void setFieldOfView(float fieldOfView)
update
protected void update()
- Specified by:
update
in class Projection