public interface JCameraSphericalType extends JCameraType, JCameraSphericalReadableType
The type of spherical style flying cameras that point towards a
given point p and allow for:
pp| 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.
|
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 a)
Set the heading angle to
a. |
void |
cameraSetAngleIncline(float a)
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.
|
cameraGetAngleHeading, cameraGetAngleIncline, cameraGetForward, cameraGetForwardProjectedOnXZ, cameraGetPosition, cameraGetRight, cameraGetTargetPosition, cameraGetUp, cameraGetZoom, cameraMakeSnapshotcameraMakeViewMatrix, cameraMakeViewPMatrixvoid cameraClampInclineDisable()
cameraClampInclineEnable(float, float)void cameraClampInclineEnable(float min,
float max)
min - The minimum anglemax - The maximum anglevoid cameraClampRadiusDisable()
cameraClampRadiusEnable(float, float)void cameraClampRadiusEnable(float min,
float max)
min - The minimum lengthmax - The maximum lengthvoid 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.
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.
u - The units to movevoid 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.
The right direction, in this
case, means the direction perpendicular to the current view direction,
-π / 2 radians around the global Y axis.
u - The units to movevoid 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.
The up direction, in this case, means the direction towards positive infinity on the global Y axis.
u - The units to movevoid cameraOrbitHeading(float r)
r - The radians to rotateboolean cameraOrbitIncline(float r)
r - The radians to orbittrue if the rotation has been clampedcameraClampInclineEnable(float, float)void cameraSetAngleHeading(float a)
a.a - The angle.void cameraSetAngleIncline(float a)
a.a - The angle.void cameraSetTargetPosition(com.io7m.jtensors.VectorReadable3FType v)
v - The position.void cameraSetTargetPosition3f(float x,
float y,
float z)
x - The x coordinate.y - The y coordinate.z - The z coordinate.void cameraSetZoom(float r)
r.r - The camera radius.boolean cameraZoomIn(float r)
r - The amount by which to reduce the radiustrue if the radius has been clampedcameraClampRadiusEnable(float, float)boolean cameraZoomOut(float r)
r - The amount by which to increase the radiustrue if the radius has been clampedcameraClampRadiusEnable(float, float)Copyright © 2016 <code@io7m.com> http://io7m.com