public class CameraSettings
extends java.lang.Object
<player_settings>
element.Constructor and Description |
---|
CameraSettings(float x,
float y,
float rr,
float tht,
float ph,
float fv)
Constructs a new camera settings record with the given camera
(x,y) location, (r,theta,phi) direction and
FoV values. |
Modifier and Type | Method and Description |
---|---|
float |
getCamFOV()
Returns the camera's
FoV angle value. |
float |
getCamPhi()
Returns the
phi -component of the camera location. |
float |
getCamR()
Returns the
r -component of the camera direction. |
float |
getCamTheta()
Returns the
theta -component of the camera location. |
float |
getCamX()
Returns the
x -component of the camera location. |
float |
getCamY()
Returns the
y -component of the camera location. |
float[] |
getSettings()
Returns the camera settings as an array-of-float,
in the standard order: x, y, r, theta, phi, fov.
|
java.lang.String |
toString()
Returns a textual representation of these camera settings.
|
public CameraSettings(float x, float y, float rr, float tht, float ph, float fv)
(x,y)
location, (r,theta,phi)
direction and
FoV values.public float getCamX()
x
-component of the camera location.public float getCamY()
y
-component of the camera location.public float getCamR()
r
-component of the camera direction.public float getCamTheta()
theta
-component of the camera location.public float getCamPhi()
phi
-component of the camera location.public float getCamFOV()
FoV
angle value.public float[] getSettings()
public java.lang.String toString()
toString
in class java.lang.Object