@EqualityStructural public final class KProjectionFOV extends Object implements KProjectionType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
float |
getAspectRatio() |
float |
getHorizontalFOV() |
int |
hashCode() |
static KProjectionFOV |
newProjection(com.io7m.jtensors.parameterized.PMatrixM4x4F<RSpaceEyeType,RSpaceClipType> temporary,
float in_horizontal_fov,
float in_aspect_ratio,
float in_z_near,
float in_z_far)
Construct a new projection.
|
<T,E extends Exception> |
projectionAccept(KProjectionVisitorType<T,E> v)
Accept a generic visitor.
|
com.io7m.jtensors.parameterized.PMatrixI4x4F<RSpaceEyeType,RSpaceClipType> |
projectionGetMatrix() |
float |
projectionGetXMaximum() |
float |
projectionGetXMinimum() |
float |
projectionGetYMaximum() |
float |
projectionGetYMinimum() |
float |
projectionGetZFar() |
float |
projectionGetZNear() |
String |
toString() |
public static KProjectionFOV newProjection(com.io7m.jtensors.parameterized.PMatrixM4x4F<RSpaceEyeType,RSpaceClipType> temporary, float in_horizontal_fov, float in_aspect_ratio, float in_z_near, float in_z_far)
temporary
- A temporary matrix.in_horizontal_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_ratio
- The aspect ratio.in_z_near
- The distance to the near plane.in_z_far
- The distance to the far plane.public float getAspectRatio()
public float getHorizontalFOV()
public <T,E extends Exception> T projectionAccept(KProjectionVisitorType<T,E> v) throws RException, E extends Exception
KProjectionType
projectionAccept
in interface KProjectionType
T
- The type of returned values.E
- The type of raised exceptions.v
- The visitor.RException
- If the visitor throws RException
.E
- If the visitor throws E
.E extends Exception
public com.io7m.jtensors.parameterized.PMatrixI4x4F<RSpaceEyeType,RSpaceClipType> projectionGetMatrix()
projectionGetMatrix
in interface KProjectionType
public float projectionGetXMaximum()
projectionGetXMaximum
in interface KProjectionType
public float projectionGetXMinimum()
projectionGetXMinimum
in interface KProjectionType
public float projectionGetYMaximum()
projectionGetYMaximum
in interface KProjectionType
public float projectionGetYMinimum()
projectionGetYMinimum
in interface KProjectionType
public float projectionGetZFar()
projectionGetZFar
in interface KProjectionType
public float projectionGetZNear()
projectionGetZNear
in interface KProjectionType
Copyright © 2015 <code@io7m.com> http://io7m.com