public final class R2ProjectionFOV extends Object implements R2ProjectionType
| Modifier and Type | Method and Description |
|---|---|
float |
getAspectRatio() |
float |
getHorizontalFOV() |
static R2ProjectionFOV |
newFrustumWith(com.io7m.jcanephora.core.JCGLProjectionMatricesType c,
float in_fov,
float in_aspect,
float in_z_near,
float in_z_far)
Construct a new FOV projection.
|
float |
projectionGetFarXMaximum() |
float |
projectionGetFarXMinimum() |
float |
projectionGetFarYMaximum() |
float |
projectionGetFarYMinimum() |
float |
projectionGetNearXMaximum() |
float |
projectionGetNearXMinimum() |
float |
projectionGetNearYMaximum() |
float |
projectionGetNearYMinimum() |
R2WatchableType<R2ProjectionReadableType> |
projectionGetWatchable() |
float |
projectionGetZFar() |
float |
projectionGetZNear() |
void |
projectionMakeMatrix(com.io7m.jtensors.parameterized.PMatrixWritable4x4FType<R2SpaceEyeType,R2SpaceClipType> m)
Write the projection to the given matrix.
|
void |
projectionMakeMatrixUntyped(com.io7m.jtensors.MatrixWritable4x4FType m)
Write the projection to the given matrix.
|
void |
projectionSetZFar(float z)
Set the distance to the far plane.
|
void |
projectionSetZNear(float z)
Set the distance to the near plane.
|
void |
setAspectRatio(float r)
Set the aspect ratio.
|
void |
setHorizontalFOV(float f)
Set the horizontal field of view.
|
public static R2ProjectionFOV newFrustumWith(com.io7m.jcanephora.core.JCGLProjectionMatricesType c, float in_fov, float in_aspect, float in_z_near, float in_z_far)
in_fov - The full horizontal field of view (the angle at the base
of the triangle formed by the frustum on the x/z
plane, in radians).in_aspect - The non-zero aspect ratioin_z_near - The distance to the near planein_z_far - The distance to the far planec - A matrices interfacepublic float getAspectRatio()
public void setAspectRatio(float r)
> 0.0.r - The new ratiopublic float getHorizontalFOV()
public void setHorizontalFOV(float f)
f - The full horizontal field of view (the angle at the base of the
triangle formed by the frustum on the x/z plane, in
radians).public void projectionSetZFar(float z)
z - The Z distancepublic void projectionSetZNear(float z)
z - The Z distancepublic void projectionMakeMatrix(com.io7m.jtensors.parameterized.PMatrixWritable4x4FType<R2SpaceEyeType,R2SpaceClipType> m)
R2ProjectionReadableTypeprojectionMakeMatrix in interface R2ProjectionReadableTypem - The output matrixpublic void projectionMakeMatrixUntyped(com.io7m.jtensors.MatrixWritable4x4FType m)
R2ProjectionReadableTypeprojectionMakeMatrixUntyped in interface R2ProjectionReadableTypem - The output matrixpublic float projectionGetNearXMaximum()
projectionGetNearXMaximum in interface R2ProjectionReadableTypepublic float projectionGetNearXMinimum()
projectionGetNearXMinimum in interface R2ProjectionReadableTypepublic float projectionGetNearYMaximum()
projectionGetNearYMaximum in interface R2ProjectionReadableTypepublic float projectionGetNearYMinimum()
projectionGetNearYMinimum in interface R2ProjectionReadableTypepublic float projectionGetZFar()
projectionGetZFar in interface R2ProjectionReadableTypepublic float projectionGetZNear()
projectionGetZNear in interface R2ProjectionReadableTypepublic float projectionGetFarXMaximum()
projectionGetFarXMaximum in interface R2ProjectionReadableTypepublic float projectionGetFarXMinimum()
projectionGetFarXMinimum in interface R2ProjectionReadableTypepublic float projectionGetFarYMaximum()
projectionGetFarYMaximum in interface R2ProjectionReadableTypepublic float projectionGetFarYMinimum()
projectionGetFarYMinimum in interface R2ProjectionReadableTypepublic R2WatchableType<R2ProjectionReadableType> projectionGetWatchable()
projectionGetWatchable in interface R2ProjectionReadableTypeCopyright © 2017 <code@io7m.com> http://io7m.com