Package com.luciad.cameras
Class Camera.LookFrom
java.lang.Object
com.luciad.cameras.Camera.LookFrom
- Enclosing class:
Camera
Structure describing the position and orientation of the camera.
-
Constructor Summary
ConstructorDescriptionLookFrom
(Coordinate eye, Azimuth yaw, double pitch, double roll) Constructs the LookFrom. -
Method Summary
Modifier and TypeMethodDescriptiongetEye()
The location of the camera, expressed in themap reference
.double
getPitch()
The pitch angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.double
getRoll()
The roll angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.getYaw()
The yaw angle of the viewer, defined with respected to a local coordinate system based on the eye point.
-
Constructor Details
-
LookFrom
Constructs the LookFrom.- Parameters:
eye
- The location of the camera, expressed in themap reference
.yaw
- The yaw angle of the viewer, defined with respected to a local coordinate system based on the eye point.pitch
- The pitch angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.roll
- The roll angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.
-
-
Method Details
-
getEye
The location of the camera, expressed in themap reference
.This location maps to the center of the camera plane.
-
getYaw
The yaw angle of the viewer, defined with respected to a local coordinate system based on the eye point.It represents the viewing angle with respect to the north. I.e. a value of 0 means that the camera is faced to the north.
-
getPitch
public double getPitch()The pitch angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.A value of zero represents a horizontal viewer (i.e. looking towards the horizon). Positive angles look up and negative angles look down.
-
getRoll
public double getRoll()The roll angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.Positive angles bank the viewer to the right; negative angles bank to the left. This value is typically 0.
-