Package com.io7m.jcamera
Class JCameraSphericalSnapshot
java.lang.Object
com.io7m.jcamera.JCameraSphericalSnapshot
- All Implemented Interfaces:
JCameraReadableSnapshotType,JCameraReadableType,JCameraSphericalReadableType,JCameraSphericalSnapshotType
An immutable snapshot of a camera.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeJCameraSphericalSnapshot. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forJCameraSphericalSnapshot.doubledoublecom.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.Vector3Ddoublestatic JCameraSphericalSnapshotcopyOf(JCameraSphericalSnapshotType instance) Creates an immutable copy of aJCameraSphericalSnapshotTypevalue.booleanThis instance is equal to all instances ofJCameraSphericalSnapshotthat have equal attribute values.inthashCode()Computes a hash code from attributes:cameraGetRight,cameraGetUp,cameraGetForward,cameraGetPosition,cameraGetAngleHeading,cameraGetAngleIncline,cameraGetZoom,cameraGetForwardProjectedOnXZ,cameraGetTargetPosition.static JCameraSphericalSnapshotof(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition, double cameraGetAngleHeading, double cameraGetAngleIncline, double cameraGetZoom, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForwardProjectedOnXZ, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetTargetPosition) Construct a new immutableJCameraSphericalSnapshotinstance.toString()Prints the immutable valueJCameraSphericalSnapshotwith attribute values.final JCameraSphericalSnapshotwithCameraGetAngleHeading(double value) Copy the current immutable object by setting a value for thecameraGetAngleHeadingattribute.final JCameraSphericalSnapshotwithCameraGetAngleIncline(double value) Copy the current immutable object by setting a value for thecameraGetAngleInclineattribute.final JCameraSphericalSnapshotwithCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetForwardattribute.final JCameraSphericalSnapshotwithCameraGetForwardProjectedOnXZ(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetForwardProjectedOnXZattribute.final JCameraSphericalSnapshotwithCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetPositionattribute.final JCameraSphericalSnapshotwithCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetRightattribute.final JCameraSphericalSnapshotwithCameraGetTargetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetTargetPositionattribute.final JCameraSphericalSnapshotwithCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetUpattribute.final JCameraSphericalSnapshotwithCameraGetZoom(double value) Copy the current immutable object by setting a value for thecameraGetZoomattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jcamera.JCameraSphericalSnapshotType
cameraMakeViewMatrix, cameraMakeViewPMatrix
-
Method Details
-
cameraGetRight
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight()- Specified by:
cameraGetRightin interfaceJCameraSphericalReadableType- Specified by:
cameraGetRightin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetRightattribute
-
cameraGetUp
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp()- Specified by:
cameraGetUpin interfaceJCameraSphericalReadableType- Specified by:
cameraGetUpin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetUpattribute
-
cameraGetForward
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward()- Specified by:
cameraGetForwardin interfaceJCameraSphericalReadableType- Specified by:
cameraGetForwardin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetForwardattribute
-
cameraGetPosition
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition()- Specified by:
cameraGetPositionin interfaceJCameraSphericalReadableType- Specified by:
cameraGetPositionin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetPositionattribute
-
cameraGetAngleHeading
public double cameraGetAngleHeading()- Specified by:
cameraGetAngleHeadingin interfaceJCameraSphericalReadableType- Specified by:
cameraGetAngleHeadingin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetAngleHeadingattribute
-
cameraGetAngleIncline
public double cameraGetAngleIncline()- Specified by:
cameraGetAngleInclinein interfaceJCameraSphericalReadableType- Specified by:
cameraGetAngleInclinein interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetAngleInclineattribute
-
cameraGetZoom
public double cameraGetZoom()- Specified by:
cameraGetZoomin interfaceJCameraSphericalReadableType- Specified by:
cameraGetZoomin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetZoomattribute
-
cameraGetForwardProjectedOnXZ
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForwardProjectedOnXZ()- Specified by:
cameraGetForwardProjectedOnXZin interfaceJCameraSphericalReadableType- Specified by:
cameraGetForwardProjectedOnXZin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetForwardProjectedOnXZattribute
-
cameraGetTargetPosition
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetTargetPosition()- Specified by:
cameraGetTargetPositionin interfaceJCameraSphericalReadableType- Specified by:
cameraGetTargetPositionin interfaceJCameraSphericalSnapshotType- Returns:
- The value of the
cameraGetTargetPositionattribute
-
withCameraGetRight
public final JCameraSphericalSnapshot withCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetRightattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetRight- Returns:
- A modified copy of the
thisobject
-
withCameraGetUp
public final JCameraSphericalSnapshot withCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetUpattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetUp- Returns:
- A modified copy of the
thisobject
-
withCameraGetForward
public final JCameraSphericalSnapshot withCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetForwardattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetForward- Returns:
- A modified copy of the
thisobject
-
withCameraGetPosition
public final JCameraSphericalSnapshot withCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetPositionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetPosition- Returns:
- A modified copy of the
thisobject
-
withCameraGetAngleHeading
Copy the current immutable object by setting a value for thecameraGetAngleHeadingattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetAngleHeading- Returns:
- A modified copy of the
thisobject
-
withCameraGetAngleIncline
Copy the current immutable object by setting a value for thecameraGetAngleInclineattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetAngleIncline- Returns:
- A modified copy of the
thisobject
-
withCameraGetZoom
Copy the current immutable object by setting a value for thecameraGetZoomattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetZoom- Returns:
- A modified copy of the
thisobject
-
withCameraGetForwardProjectedOnXZ
public final JCameraSphericalSnapshot withCameraGetForwardProjectedOnXZ(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetForwardProjectedOnXZattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetForwardProjectedOnXZ- Returns:
- A modified copy of the
thisobject
-
withCameraGetTargetPosition
public final JCameraSphericalSnapshot withCameraGetTargetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value) Copy the current immutable object by setting a value for thecameraGetTargetPositionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cameraGetTargetPosition- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofJCameraSphericalSnapshotthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:cameraGetRight,cameraGetUp,cameraGetForward,cameraGetPosition,cameraGetAngleHeading,cameraGetAngleIncline,cameraGetZoom,cameraGetForwardProjectedOnXZ,cameraGetTargetPosition. -
toString
Prints the immutable valueJCameraSphericalSnapshotwith attribute values. -
of
public static JCameraSphericalSnapshot of(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition, double cameraGetAngleHeading, double cameraGetAngleIncline, double cameraGetZoom, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForwardProjectedOnXZ, com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetTargetPosition) Construct a new immutableJCameraSphericalSnapshotinstance.- Parameters:
cameraGetRight- The value for thecameraGetRightattributecameraGetUp- The value for thecameraGetUpattributecameraGetForward- The value for thecameraGetForwardattributecameraGetPosition- The value for thecameraGetPositionattributecameraGetAngleHeading- The value for thecameraGetAngleHeadingattributecameraGetAngleIncline- The value for thecameraGetAngleInclineattributecameraGetZoom- The value for thecameraGetZoomattributecameraGetForwardProjectedOnXZ- The value for thecameraGetForwardProjectedOnXZattributecameraGetTargetPosition- The value for thecameraGetTargetPositionattribute- Returns:
- An immutable JCameraSphericalSnapshot instance
-
copyOf
Creates an immutable copy of aJCameraSphericalSnapshotTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable JCameraSphericalSnapshot instance
-
builder
Creates a builder forJCameraSphericalSnapshot.JCameraSphericalSnapshot.builder() .setCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D) // requiredcameraGetRight.setCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D) // requiredcameraGetUp.setCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D) // requiredcameraGetForward.setCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D) // requiredcameraGetPosition.setCameraGetAngleHeading(double) // requiredcameraGetAngleHeading.setCameraGetAngleIncline(double) // requiredcameraGetAngleIncline.setCameraGetZoom(double) // requiredcameraGetZoom.setCameraGetForwardProjectedOnXZ(com.io7m.jtensors.core.unparameterized.vectors.Vector3D) // requiredcameraGetForwardProjectedOnXZ.setCameraGetTargetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D) // requiredcameraGetTargetPosition.build();- Returns:
- A new JCameraSphericalSnapshot builder
-