@EqualityStructural public final class JCameraFPSStyleSnapshot extends Object implements JCameraFPSStyleReadableType, JCameraReadableSnapshotType
JCameraFPSStyleType.| Modifier and Type | Method and Description |
|---|---|
float |
cameraGetAngleAroundHorizontal() |
float |
cameraGetAngleAroundVertical() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetForward() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetPosition() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetRight() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetUp() |
JCameraFPSStyleSnapshot |
cameraMakeSnapshot() |
void |
cameraMakeViewMatrix(JCameraContext ctx,
com.io7m.jtensors.Matrix4x4FType m)
Construct a view matrix for the camera, using preallocated storage in
ctx and writing the result to m. |
<T0,T1> void |
cameraMakeViewPMatrix(JCameraContext ctx,
com.io7m.jtensors.parameterized.PMatrix4x4FType<T0,T1> m)
Construct a view matrix for the camera, using preallocated storage in
ctx and writing the result to m. |
boolean |
equals(Object obj) |
int |
hashCode() |
static JCameraFPSStyleSnapshot |
interpolate(JCameraFPSStyleSnapshot x,
JCameraFPSStyleSnapshot y,
float a)
Linearly interpolate between two camera snapshots.
|
public static JCameraFPSStyleSnapshot interpolate(JCameraFPSStyleSnapshot x, JCameraFPSStyleSnapshot y, float a)
x - The first snapshoty - The second snapshota - The interpolation valuex and ypublic float cameraGetAngleAroundHorizontal()
cameraGetAngleAroundHorizontal in interface JCameraFPSStyleReadableTypepublic float cameraGetAngleAroundVertical()
cameraGetAngleAroundVertical in interface JCameraFPSStyleReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetForward()
cameraGetForward in interface JCameraFPSStyleReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetPosition()
cameraGetPosition in interface JCameraFPSStyleReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetRight()
cameraGetRight in interface JCameraFPSStyleReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetUp()
cameraGetUp in interface JCameraFPSStyleReadableTypepublic JCameraFPSStyleSnapshot cameraMakeSnapshot()
cameraMakeSnapshot in interface JCameraFPSStyleReadableTypepublic void cameraMakeViewMatrix(JCameraContext ctx, com.io7m.jtensors.Matrix4x4FType m)
JCameraReadableTypectx and writing the result to m.cameraMakeViewMatrix in interface JCameraReadableTypectx - Preallocated storagem - The output matrixpublic <T0,T1> void cameraMakeViewPMatrix(JCameraContext ctx, com.io7m.jtensors.parameterized.PMatrix4x4FType<T0,T1> m)
JCameraReadableTypectx and writing the result to m.cameraMakeViewPMatrix in interface JCameraReadableTypeT0 - The source coordinate systemT1 - The target coordiante systemctx - Preallocated storagem - The output matrixCopyright © 2016 <code@io7m.com> http://io7m.com