public final class R2ProjectionFrustum extends Object implements R2ProjectionType
Modifier and Type | Method and Description |
---|---|
static R2ProjectionFrustum |
create()
Construct a new frustum projection.
|
static R2ProjectionFrustum |
createWith(double in_x_min,
double in_x_max,
double in_y_min,
double in_y_max,
double in_z_near,
double in_z_far)
Construct a new frustum projection.
|
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 |
projectionSetXMaximum(double x)
Set the maximum X value on the near plane.
|
void |
projectionSetXMinimum(double x)
Set the minimum X value on the near plane.
|
void |
projectionSetYMaximum(double y)
Set the maximum Y value on the near plane.
|
void |
projectionSetYMinimum(double y)
Set the minimum Y value on the near plane.
|
void |
projectionSetZFar(double z)
Set the distance to the far plane.
|
void |
projectionSetZNear(double z)
Set the distance to the near plane.
|
public static R2ProjectionFrustum create()
public static R2ProjectionFrustum createWith(double in_x_min, double in_x_max, double in_y_min, double in_y_max, double in_z_near, double 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 planepublic void projectionSetXMaximum(double x)
x
- The X valuepublic void projectionSetXMinimum(double x)
x
- The X valuepublic void projectionSetYMaximum(double y)
y
- The Y valuepublic void projectionSetYMinimum(double y)
y
- The Y valuepublic 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