Package com.luciad.cameras
Class Camera.LookAt
java.lang.Object
com.luciad.cameras.Camera.LookAt
- Enclosing class:
Camera
Structure to
orient
a camera based on a specific target point.-
Constructor Summary
ConstructorDescriptionLookAt
(Coordinate target, double distance, Azimuth yaw, double pitch, double roll) Constructs the LookAt. -
Method Summary
Modifier and TypeMethodDescriptiondouble
The distance between the camera location (eye) and the reference point.double
getPitch()
The pitch angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point.double
getRoll()
The roll angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point.The point to which the camera is looking, expressed in themap reference
.getYaw()
The yaw angle of the viewer, defined with respect to a local coordinate system based on the reference point.
-
Constructor Details
-
LookAt
public LookAt(@NotNull Coordinate target, double distance, @NotNull Azimuth yaw, double pitch, double roll) Constructs the LookAt.- Parameters:
target
- The point to which the camera is looking, expressed in themap reference
.distance
- The distance between the camera location (eye) and the reference point.yaw
- The yaw angle of the viewer, defined with respect to a local coordinate system based on the reference point.pitch
- The pitch angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point.roll
- The roll angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point.
-
-
Method Details
-
getTarget
The point to which the camera is looking, expressed in themap reference
.This location maps to the center of the camera plane.
-
getDistance
public double getDistance()The distance between the camera location (eye) and the reference point. -
getYaw
The yaw angle of the viewer, defined with respect to a local coordinate system based on the reference 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 respect to a local coordinate system based on the reference 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 respect to a local coordinate system based on the reference point.Positive angles bank the viewer to the right; negative angles bank to the left. This value is typically 0.
-