de.grogra.imp3d
public class PerspectiveProjection extends Projection
| Modifier and Type | Class and Description |
|---|---|
static class |
PerspectiveProjection.Type |
| Modifier and Type | Field and Description |
|---|---|
static PerspectiveProjection.Type |
$TYPE |
protected float |
fieldOfView |
static SCOType.Field |
fieldOfView$FIELD |
aspect, aspect$FIELD, sx, sy| Constructor and Description |
|---|
PerspectiveProjection() |
PerspectiveProjection(float fieldOfView,
float aspect) |
| Modifier and Type | Method and Description |
|---|---|
static float |
clampFieldOfView(float fieldOfView) |
float |
getFieldOfView() |
ManageableType |
getManageableType() |
protected void |
getRayInViewCoordinates(float x,
float y,
Point3d origin,
Vector3d direction,
Matrix4d deviceToView,
Tuple2d densities) |
float |
getScaleAt(float z) |
protected void |
getTransformation(float near,
float far,
Matrix4d viewToClip,
Matrix4d deviceToView) |
void |
setFieldOfView(float fieldOfView) |
protected void |
update() |
completeRay, computeBSDF, generateRandomOrigins, generateRandomRays, getAspect, getScaleX, getScaleYaddReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferencepublic static final PerspectiveProjection.Type $TYPE
protected float fieldOfView
public static final SCOType.Field fieldOfView$FIELD
public PerspectiveProjection()
public PerspectiveProjection(float fieldOfView,
float aspect)
public static float clampFieldOfView(float fieldOfView)
public float getFieldOfView()
public ManageableType getManageableType()
protected void getRayInViewCoordinates(float x,
float y,
Point3d origin,
Vector3d direction,
Matrix4d deviceToView,
Tuple2d densities)
getRayInViewCoordinates in class Projectionpublic float getScaleAt(float z)
getScaleAt in class Projectionprotected void getTransformation(float near,
float far,
Matrix4d viewToClip,
Matrix4d deviceToView)
getTransformation in class Projectionpublic void setFieldOfView(float fieldOfView)
protected void update()
update in class Projection