public final class R2ProjectionFrustum extends Object implements R2ProjectionType
| Modifier and Type | Method and Description |
|---|---|
static R2ProjectionFrustum |
newFrustum(com.io7m.jcanephora.core.JCGLProjectionMatricesType c)
Construct a new frustum projection.
|
static R2ProjectionFrustum |
newFrustumWith(com.io7m.jcanephora.core.JCGLProjectionMatricesType c,
float in_x_min,
float in_x_max,
float in_y_min,
float in_y_max,
float in_z_near,
float in_z_far)
Construct a new frustum 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 |
projectionSetXMaximum(float x)
Set the maximum X value on the near plane.
|
void |
projectionSetXMinimum(float x)
Set the minimum X value on the near plane.
|
void |
projectionSetYMaximum(float y)
Set the maximum Y value on the near plane.
|
void |
projectionSetYMinimum(float y)
Set the minimum Y value on the near plane.
|
void |
projectionSetZFar(float z)
Set the distance to the far plane.
|
void |
projectionSetZNear(float z)
Set the distance to the near plane.
|
public static R2ProjectionFrustum newFrustum(com.io7m.jcanephora.core.JCGLProjectionMatricesType c)
c - A matrices interfacepublic static R2ProjectionFrustum newFrustumWith(com.io7m.jcanephora.core.JCGLProjectionMatricesType c, float in_x_min, float in_x_max, float in_y_min, float in_y_max, float in_z_near, float in_z_far)
in_x_min - The minimum X value on the near planein_x_max - The maximum X value on the near planein_y_min - The minimum Y value on the near planein_y_max - The maximum Y value on the near planein_z_near - The distance to the near planein_z_far - The distance to the far planec - A matrices interfacepublic void projectionSetXMaximum(float x)
x - The X valuepublic void projectionSetXMinimum(float x)
x - The X valuepublic void projectionSetYMaximum(float y)
y - The Y valuepublic void projectionSetYMinimum(float y)
y - The Y valuepublic 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 © 2016 <code@io7m.com> http://io7m.com