@EqualityStructural public final class JCameraSpherical extends Object implements JCameraSphericalType
JCameraSphericalType.| Modifier and Type | Method and Description |
|---|---|
void |
cameraClampInclineDisable()
Do not clamp rotations around the horizontal axis.
|
void |
cameraClampInclineEnable(double min,
double max)
Clamp the possible rotations around the horizontal axis to the given
bounds.
|
void |
cameraClampRadiusDisable()
Do not clamp the length of the radius.
|
void |
cameraClampRadiusEnable(double min,
double max)
Clamp the length of the radius to the given bounds.
|
double |
cameraGetAngleHeading() |
double |
cameraGetAngleIncline() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
cameraGetForward() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
cameraGetForwardProjectedOnXZ() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
cameraGetPosition() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
cameraGetRight() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
cameraGetTargetPosition() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
cameraGetUp() |
double |
cameraGetZoom() |
com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D |
cameraMakeViewMatrix()
Construct a view matrix for the camera.
|
<T0,T1> com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<T0,T1> |
cameraMakeViewPMatrix()
Construct a view matrix for the camera.
|
void |
cameraMoveTargetForwardOnXZ(double u)
Move the target point of the camera forward
u units
iff u is positive, or backward u units iff
u is negative. |
void |
cameraMoveTargetRight(double u)
Move the target point of the camera right
u units
iff u is positive, or left u units iff
u is negative. |
void |
cameraMoveTargetUp(double u)
Move the target point of the camera up
u units iff
u is positive, or down u units iff
u is negative. |
void |
cameraOrbitHeading(double r) |
boolean |
cameraOrbitIncline(double r) |
void |
cameraSetAngleHeading(double v)
Set the heading angle to
a. |
void |
cameraSetAngleIncline(double h)
Set the incline angle to
a. |
void |
cameraSetTargetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D v)
Set the position of the target point of camera.
|
void |
cameraSetTargetPosition3(double x,
double y,
double z)
Set the position of the target point of camera.
|
void |
cameraSetZoom(double r)
Set the zoom (or radius) of the camera to
r. |
boolean |
cameraZoomIn(double r)
Zoom in the camera by reducing the radius of the sphere.
|
boolean |
cameraZoomOut(double r)
Zoom out the camera by increasing the radius of the sphere.
|
boolean |
equals(Object o) |
int |
hashCode() |
static JCameraSphericalType |
newCamera() |
static JCameraSphericalType |
newCameraFrom(JCameraSphericalReadableType c) |
String |
toString() |
public static JCameraSphericalType newCamera()
public static JCameraSphericalType newCameraFrom(JCameraSphericalReadableType c)
c - An existing camerapublic void cameraClampInclineDisable()
JCameraSphericalTypecameraClampInclineDisable in interface JCameraSphericalTypeJCameraSphericalType.cameraClampInclineEnable(double, double)public void cameraClampInclineEnable(double min,
double max)
JCameraSphericalTypecameraClampInclineEnable in interface JCameraSphericalTypemin - The minimum anglemax - The maximum anglepublic void cameraClampRadiusDisable()
JCameraSphericalTypecameraClampRadiusDisable in interface JCameraSphericalTypeJCameraSphericalType.cameraClampRadiusEnable(double, double)public void cameraClampRadiusEnable(double min,
double max)
JCameraSphericalTypecameraClampRadiusEnable in interface JCameraSphericalTypemin - The minimum lengthmax - The maximum lengthpublic double cameraGetAngleHeading()
cameraGetAngleHeading in interface JCameraSphericalReadableTypepublic double cameraGetAngleIncline()
cameraGetAngleIncline in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward()
cameraGetForward in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForwardProjectedOnXZ()
cameraGetForwardProjectedOnXZ in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition()
cameraGetPosition in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight()
cameraGetRight in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetTargetPosition()
cameraGetTargetPosition in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp()
cameraGetUp in interface JCameraSphericalReadableTypepublic double cameraGetZoom()
cameraGetZoom in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D cameraMakeViewMatrix()
JCameraReadableTypecameraMakeViewMatrix in interface JCameraReadableTypepublic <T0,T1> com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<T0,T1> cameraMakeViewPMatrix()
JCameraReadableTypecameraMakeViewPMatrix in interface JCameraReadableTypeT0 - The source coordinate systemT1 - The target coordiante systempublic void cameraMoveTargetForwardOnXZ(double u)
JCameraSphericalType Move the target point of the camera forward u units
iff u is positive, or backward u units iff
u is negative.
The forward direction, in this case, means the current view direction projected onto the X/Z plane. This means that the camera will not move along the Y axis.
cameraMoveTargetForwardOnXZ in interface JCameraSphericalTypeu - The units to movepublic void cameraMoveTargetRight(double u)
JCameraSphericalType Move the target point of the camera right u units
iff u is positive, or left u units iff
u is negative.
The right direction, in this
case, means the direction perpendicular to the current view direction,
-π / 2 radians around the global Y axis.
cameraMoveTargetRight in interface JCameraSphericalTypeu - The units to movepublic void cameraMoveTargetUp(double u)
JCameraSphericalType Move the target point of the camera up u units iff
u is positive, or down u units iff
u is negative.
The up direction, in this case, means the direction towards positive infinity on the global Y axis.
cameraMoveTargetUp in interface JCameraSphericalTypeu - The units to movepublic void cameraOrbitHeading(double r)
cameraOrbitHeading in interface JCameraSphericalTyper - The radians to rotatepublic boolean cameraOrbitIncline(double r)
cameraOrbitIncline in interface JCameraSphericalTyper - The radians to orbittrue if the rotation has been clampedJCameraSphericalType.cameraClampInclineEnable(double, double)public void cameraSetAngleHeading(double v)
JCameraSphericalTypea.cameraSetAngleHeading in interface JCameraSphericalTypev - The angle.public void cameraSetAngleIncline(double h)
JCameraSphericalTypea.cameraSetAngleIncline in interface JCameraSphericalTypeh - The angle.public void cameraSetTargetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D v)
JCameraSphericalTypecameraSetTargetPosition in interface JCameraSphericalTypev - The position.public void cameraSetTargetPosition3(double x,
double y,
double z)
JCameraSphericalTypecameraSetTargetPosition3 in interface JCameraSphericalTypex - The x coordinate.y - The y coordinate.z - The z coordinate.public void cameraSetZoom(double r)
JCameraSphericalTyper.cameraSetZoom in interface JCameraSphericalTyper - The camera radius.public boolean cameraZoomIn(double r)
JCameraSphericalTypecameraZoomIn in interface JCameraSphericalTyper - The amount by which to reduce the radiustrue if the radius has been clampedJCameraSphericalType.cameraClampRadiusEnable(double, double)public boolean cameraZoomOut(double r)
JCameraSphericalTypecameraZoomOut in interface JCameraSphericalTyper - The amount by which to increase the radiustrue if the radius has been clampedJCameraSphericalType.cameraClampRadiusEnable(double, double)Copyright © 2017 <code@io7m.com> http://io7m.com