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(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.
|
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 a)
Set the heading angle to
a. |
void |
cameraSetAngleIncline(double a)
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.
|
cameraGetAngleHeading, cameraGetAngleIncline, cameraGetForward, cameraGetForwardProjectedOnXZ, cameraGetPosition, cameraGetRight, cameraGetTargetPosition, cameraGetUp, cameraGetZoomcameraMakeViewMatrix, cameraMakeViewPMatrixvoid cameraClampInclineDisable()
cameraClampInclineEnable(double, double)void cameraClampInclineEnable(double min,
double max)
min - The minimum anglemax - The maximum anglevoid cameraClampRadiusDisable()
cameraClampRadiusEnable(double, double)void cameraClampRadiusEnable(double min,
double max)
min - The minimum lengthmax - The maximum lengthvoid 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.
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(double 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(double 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(double r)
r - The radians to rotateboolean cameraOrbitIncline(double r)
r - The radians to orbittrue if the rotation has been clampedcameraClampInclineEnable(double, double)void cameraSetAngleHeading(double a)
a.a - The angle.void cameraSetAngleIncline(double a)
a.a - The angle.void cameraSetTargetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D v)
v - The position.void cameraSetTargetPosition3(double x,
double y,
double z)
x - The x coordinate.y - The y coordinate.z - The z coordinate.void cameraSetZoom(double r)
r.r - The camera radius.boolean cameraZoomIn(double r)
r - The amount by which to reduce the radiustrue if the radius has been clampedcameraClampRadiusEnable(double, double)boolean cameraZoomOut(double r)
r - The amount by which to increase the radiustrue if the radius has been clampedcameraClampRadiusEnable(double, double)Copyright © 2017 <code@io7m.com> http://io7m.com