@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(float min,
float 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(float min,
float max)
Clamp the length of the radius to the given bounds.
|
float |
cameraGetAngleHeading() |
float |
cameraGetAngleIncline() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetForward() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetForwardProjectedOnXZ() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetPosition() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetRight() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetTargetPosition() |
com.io7m.jtensors.VectorReadable3FType |
cameraGetUp() |
float |
cameraGetZoom() |
JCameraSphericalSnapshot |
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. |
void |
cameraMoveTargetForwardOnXZ(float 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(float 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(float 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(float r) |
boolean |
cameraOrbitIncline(float r) |
void |
cameraSetAngleHeading(float v)
Set the heading angle to
a. |
void |
cameraSetAngleIncline(float h)
Set the incline angle to
a. |
void |
cameraSetTargetPosition(com.io7m.jtensors.VectorReadable3FType v)
Set the position of the target point of camera.
|
void |
cameraSetTargetPosition3f(float x,
float y,
float z)
Set the position of the target point of camera.
|
void |
cameraSetZoom(float r)
Set the zoom (or radius) of the camera to
r. |
boolean |
cameraZoomIn(float r)
Zoom in the camera by reducing the radius of the sphere.
|
boolean |
cameraZoomOut(float r)
Zoom out the camera by increasing the radius of the sphere.
|
boolean |
equals(Object obj) |
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(float, float)public void cameraClampInclineEnable(float min,
float max)
JCameraSphericalTypecameraClampInclineEnable in interface JCameraSphericalTypemin - The minimum anglemax - The maximum anglepublic void cameraClampRadiusDisable()
JCameraSphericalTypecameraClampRadiusDisable in interface JCameraSphericalTypeJCameraSphericalType.cameraClampRadiusEnable(float, float)public void cameraClampRadiusEnable(float min,
float max)
JCameraSphericalTypecameraClampRadiusEnable in interface JCameraSphericalTypemin - The minimum lengthmax - The maximum lengthpublic float cameraGetAngleHeading()
cameraGetAngleHeading in interface JCameraSphericalReadableTypepublic float cameraGetAngleIncline()
cameraGetAngleIncline in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetForward()
cameraGetForward in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetForwardProjectedOnXZ()
cameraGetForwardProjectedOnXZ in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetPosition()
cameraGetPosition in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetRight()
cameraGetRight in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetTargetPosition()
cameraGetTargetPosition in interface JCameraSphericalReadableTypepublic com.io7m.jtensors.VectorReadable3FType cameraGetUp()
cameraGetUp in interface JCameraSphericalReadableTypepublic float cameraGetZoom()
cameraGetZoom in interface JCameraSphericalReadableTypepublic JCameraSphericalSnapshot cameraMakeSnapshot()
cameraMakeSnapshot in interface JCameraSphericalReadableTypepublic 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 matrixpublic void cameraMoveTargetForwardOnXZ(float 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(float 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(float 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(float r)
cameraOrbitHeading in interface JCameraSphericalTyper - The radians to rotatepublic boolean cameraOrbitIncline(float r)
cameraOrbitIncline in interface JCameraSphericalTyper - The radians to orbittrue if the rotation has been clampedJCameraSphericalType.cameraClampInclineEnable(float, float)public void cameraSetAngleHeading(float v)
JCameraSphericalTypea.cameraSetAngleHeading in interface JCameraSphericalTypev - The angle.public void cameraSetAngleIncline(float h)
JCameraSphericalTypea.cameraSetAngleIncline in interface JCameraSphericalTypeh - The angle.public void cameraSetTargetPosition(com.io7m.jtensors.VectorReadable3FType v)
JCameraSphericalTypecameraSetTargetPosition in interface JCameraSphericalTypev - The position.public void cameraSetTargetPosition3f(float x,
float y,
float z)
JCameraSphericalTypecameraSetTargetPosition3f in interface JCameraSphericalTypex - The x coordinate.y - The y coordinate.z - The z coordinate.public void cameraSetZoom(float r)
JCameraSphericalTyper.cameraSetZoom in interface JCameraSphericalTyper - The camera radius.public boolean cameraZoomIn(float r)
JCameraSphericalTypecameraZoomIn in interface JCameraSphericalTyper - The amount by which to reduce the radiustrue if the radius has been clampedJCameraSphericalType.cameraClampRadiusEnable(float, float)public boolean cameraZoomOut(float r)
JCameraSphericalTypecameraZoomOut in interface JCameraSphericalTyper - The amount by which to increase the radiustrue if the radius has been clampedJCameraSphericalType.cameraClampRadiusEnable(float, float)Copyright © 2016 <code@io7m.com> http://io7m.com