public final class R2ProjectionFOV extends Object implements R2ProjectionType
Modifier and Type | Method and Description |
---|---|
double |
aspectRatio() |
static R2ProjectionFOV |
createWith(double in_fov,
double in_aspect,
double in_z_near,
double in_z_far)
Construct a new FOV projection.
|
double |
horizontalFOV() |
double |
projectionGetFarXMaximum() |
double |
projectionGetFarXMinimum() |
double |
projectionGetFarYMaximum() |
double |
projectionGetFarYMinimum() |
double |
projectionGetNearXMaximum() |
double |
projectionGetNearXMinimum() |
double |
projectionGetNearYMaximum() |
double |
projectionGetNearYMinimum() |
R2WatchableType<R2ProjectionReadableType> |
projectionGetWatchable() |
double |
projectionGetZFar() |
double |
projectionGetZNear() |
com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<R2SpaceEyeType,R2SpaceClipType> |
projectionMakeMatrix() |
com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D |
projectionMakeMatrixUntyped() |
void |
projectionSetZFar(double z)
Set the distance to the far plane.
|
void |
projectionSetZNear(double z)
Set the distance to the near plane.
|
void |
setAspectRatio(double r)
Set the aspect ratio.
|
void |
setHorizontalFOV(double f)
Set the horizontal field of view.
|
public static R2ProjectionFOV createWith(double in_fov, double in_aspect, double in_z_near, double 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 planepublic double aspectRatio()
public void setAspectRatio(double r)
> 0.0
.r
- The new ratiopublic double horizontalFOV()
public void setHorizontalFOV(double 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(double z)
z
- The Z distancepublic void projectionSetZNear(double z)
z
- The Z distancepublic com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<R2SpaceEyeType,R2SpaceClipType> projectionMakeMatrix()
projectionMakeMatrix
in interface R2ProjectionReadableType
public com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D projectionMakeMatrixUntyped()
projectionMakeMatrixUntyped
in interface R2ProjectionReadableType
public double projectionGetNearXMaximum()
projectionGetNearXMaximum
in interface R2ProjectionReadableType
public double projectionGetNearXMinimum()
projectionGetNearXMinimum
in interface R2ProjectionReadableType
public double projectionGetNearYMaximum()
projectionGetNearYMaximum
in interface R2ProjectionReadableType
public double projectionGetNearYMinimum()
projectionGetNearYMinimum
in interface R2ProjectionReadableType
public double projectionGetZFar()
projectionGetZFar
in interface R2ProjectionReadableType
public double projectionGetZNear()
projectionGetZNear
in interface R2ProjectionReadableType
public double projectionGetFarXMaximum()
projectionGetFarXMaximum
in interface R2ProjectionReadableType
public double projectionGetFarXMinimum()
projectionGetFarXMinimum
in interface R2ProjectionReadableType
public double projectionGetFarYMaximum()
projectionGetFarYMaximum
in interface R2ProjectionReadableType
public double projectionGetFarYMinimum()
projectionGetFarYMinimum
in interface R2ProjectionReadableType
public R2WatchableType<R2ProjectionReadableType> projectionGetWatchable()
projectionGetWatchable
in interface R2ProjectionReadableType
Copyright © 2017 <code@io7m.com> http://io7m.com