Package com.io7m.jcamera
Class JCameraFPSStyleSnapshot.Builder
java.lang.Object
com.io7m.jcamera.JCameraFPSStyleSnapshot.Builder
- Enclosing class:
- JCameraFPSStyleSnapshot
Builds instances of type
JCameraFPSStyleSnapshot.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newJCameraFPSStyleSnapshot.from(JCameraFPSStyleReadableType instance) Fill a builder with attribute values from the providedcom.io7m.jcamera.JCameraFPSStyleReadableTypeinstance.from(JCameraFPSStyleSnapshotType instance) Fill a builder with attribute values from the providedcom.io7m.jcamera.JCameraFPSStyleSnapshotTypeinstance.setCameraGetAngleAroundHorizontal(double cameraGetAngleAroundHorizontal) Initializes the value for thecameraGetAngleAroundHorizontalattribute.setCameraGetAngleAroundVertical(double cameraGetAngleAroundVertical) Initializes the value for thecameraGetAngleAroundVerticalattribute.setCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward) Initializes the value for thecameraGetForwardattribute.setCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition) Initializes the value for thecameraGetPositionattribute.setCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight) Initializes the value for thecameraGetRightattribute.setCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp) Initializes the value for thecameraGetUpattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jcamera.JCameraFPSStyleSnapshotTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.jcamera.JCameraFPSStyleReadableTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setCameraGetAngleAroundHorizontal
public final JCameraFPSStyleSnapshot.Builder setCameraGetAngleAroundHorizontal(double cameraGetAngleAroundHorizontal) Initializes the value for thecameraGetAngleAroundHorizontalattribute.- Parameters:
cameraGetAngleAroundHorizontal- The value for cameraGetAngleAroundHorizontal- Returns:
thisbuilder for use in a chained invocation
-
setCameraGetAngleAroundVertical
public final JCameraFPSStyleSnapshot.Builder setCameraGetAngleAroundVertical(double cameraGetAngleAroundVertical) Initializes the value for thecameraGetAngleAroundVerticalattribute.- Parameters:
cameraGetAngleAroundVertical- The value for cameraGetAngleAroundVertical- Returns:
thisbuilder for use in a chained invocation
-
setCameraGetRight
public final JCameraFPSStyleSnapshot.Builder setCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight) Initializes the value for thecameraGetRightattribute.- Parameters:
cameraGetRight- The value for cameraGetRight- Returns:
thisbuilder for use in a chained invocation
-
setCameraGetUp
public final JCameraFPSStyleSnapshot.Builder setCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp) Initializes the value for thecameraGetUpattribute.- Parameters:
cameraGetUp- The value for cameraGetUp- Returns:
thisbuilder for use in a chained invocation
-
setCameraGetForward
public final JCameraFPSStyleSnapshot.Builder setCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward) Initializes the value for thecameraGetForwardattribute.- Parameters:
cameraGetForward- The value for cameraGetForward- Returns:
thisbuilder for use in a chained invocation
-
setCameraGetPosition
public final JCameraFPSStyleSnapshot.Builder setCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition) Initializes the value for thecameraGetPositionattribute.- Parameters:
cameraGetPosition- The value for cameraGetPosition- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newJCameraFPSStyleSnapshot.- Returns:
- An immutable instance of JCameraFPSStyleSnapshot
- Throws:
IllegalStateException- if any required attributes are missing
-