Constructor and Description |
---|
LookAt(Coordinate target,
double distance,
Azimuth yaw,
double pitch,
double roll)
Constructs the LookAt.
|
Modifier and Type | Method and Description |
---|---|
double |
getDistance()
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.
|
Coordinate |
getTarget()
The point to which the camera is looking, expressed in the
map reference . |
Azimuth |
getYaw()
The yaw angle of the viewer, defined with respect to a local coordinate system based on the reference point.
|
public LookAt(@NotNull Coordinate target, double distance, @NotNull Azimuth yaw, double pitch, double roll)
target
- The point to which the camera is looking, expressed in the map 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.@NotNull public Coordinate getTarget()
map reference
.
This location maps to the center of the camera plane.
public double getDistance()
@NotNull public Azimuth getYaw()
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.
public double getPitch()
A value of zero represents a horizontal viewer (i.e. looking towards the horizon). Positive angles look up and negative angles look down.
public double getRoll()
Positive angles bank the viewer to the right; negative angles bank to the left. This value is typically 0.