Package com.io7m.jcamera
Interface JCameraSphericalSnapshotType
- All Superinterfaces:
JCameraReadableSnapshotType,JCameraReadableType,JCameraSphericalReadableType
- All Known Implementing Classes:
JCameraSphericalSnapshot
@Immutable
public interface JCameraSphericalSnapshotType
extends JCameraSphericalReadableType, JCameraReadableSnapshotType
An immutable snapshot of a camera.
-
Method Summary
Modifier and TypeMethodDescriptiondoubledoublecom.io7m.jtensors.core.unparameterized.vectors.Vector3Dcom.io7m.jtensors.core.unparameterized.vectors.Vector3Dcom.io7m.jtensors.core.unparameterized.vectors.Vector3Dcom.io7m.jtensors.core.unparameterized.vectors.Vector3Dcom.io7m.jtensors.core.unparameterized.vectors.Vector3Dcom.io7m.jtensors.core.unparameterized.vectors.Vector3Ddoubledefault com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4DConstruct a view matrix for the camera.default <T0,T1> com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<T0, T1> Construct a view matrix for the camera.
-
Method Details
-
cameraGetRight
@Parameter(order=0) com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight()- Specified by:
cameraGetRightin interfaceJCameraSphericalReadableType- Returns:
- The right direction for the camera.
-
cameraGetUp
@Parameter(order=1) com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp()- Specified by:
cameraGetUpin interfaceJCameraSphericalReadableType- Returns:
- The up direction for the camera.
-
cameraGetForward
@Parameter(order=2) com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward()- Specified by:
cameraGetForwardin interfaceJCameraSphericalReadableType- Returns:
- The forward direction for the camera.
-
cameraGetPosition
@Parameter(order=3) com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition()- Specified by:
cameraGetPositionin interfaceJCameraSphericalReadableType- Returns:
- The position of the camera.
-
cameraGetAngleHeading
@Parameter(order=4) double cameraGetAngleHeading()- Specified by:
cameraGetAngleHeadingin interfaceJCameraSphericalReadableType- Returns:
- The angle around the vertical axis.
-
cameraGetAngleIncline
@Parameter(order=5) double cameraGetAngleIncline()- Specified by:
cameraGetAngleInclinein interfaceJCameraSphericalReadableType- Returns:
- The angle around the horizontal axis.
-
cameraGetZoom
@Parameter(order=6) double cameraGetZoom()- Specified by:
cameraGetZoomin interfaceJCameraSphericalReadableType- Returns:
- The zoom (or radius) of the camera.
-
cameraGetForwardProjectedOnXZ
@Parameter(order=7) com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForwardProjectedOnXZ()- Specified by:
cameraGetForwardProjectedOnXZin interfaceJCameraSphericalReadableType- Returns:
- The forward direction for the camera, projected onto the X/Z plane.
-
cameraGetTargetPosition
@Parameter(order=8) com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetTargetPosition()- Specified by:
cameraGetTargetPositionin interfaceJCameraSphericalReadableType- Returns:
- The position of the camera target.
-
cameraMakeViewMatrix
default com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D cameraMakeViewMatrix()Description copied from interface:JCameraReadableTypeConstruct a view matrix for the camera.- Specified by:
cameraMakeViewMatrixin interfaceJCameraReadableType- Returns:
- A view matrix for the camera
-
cameraMakeViewPMatrix
default <T0,T1> com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<T0,T1> cameraMakeViewPMatrix()Description copied from interface:JCameraReadableTypeConstruct a view matrix for the camera.- Specified by:
cameraMakeViewPMatrixin interfaceJCameraReadableType- Type Parameters:
T0- The source coordinate systemT1- The target coordiante system- Returns:
- A view matrix for the camera
-