LuciadCPillar 2023.1.04
luciad::Camera::LookAt Struct Reference

Structure to orient a camera based on a specific target point. More...

#include <luciad/cameras/Camera.h>

Public Member Functions

 LookAt (Coordinate target, double distance, Azimuth yaw, double pitch, double roll)
 Constructs the LookAt. More...
 

Public Attributes

double distance
 The distance between the camera location (eye) and the reference point. More...
 
double pitch
 The pitch angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point. More...
 
double roll
 The roll angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point. More...
 
Coordinate target
 The point to which the camera is looking, expressed in the map reference. More...
 
Azimuth yaw = 0.0
 The yaw angle of the viewer, defined with respect to a local coordinate system based on the reference point. More...
 

Detailed Description

Structure to orient a camera based on a specific target point.

Constructor & Destructor Documentation

◆ LookAt()

luciad::Camera::LookAt::LookAt ( Coordinate  target,
double  distance,
Azimuth  yaw,
double  pitch,
double  roll 
)
inline

Constructs the LookAt.

Parameters
targetThe point to which the camera is looking, expressed in the map reference.
distanceThe distance between the camera location (eye) and the reference point.
yawThe yaw angle of the viewer, defined with respect to a local coordinate system based on the reference point.
pitchThe pitch angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point.
rollThe roll angle of the viewer in degrees, defined with respect to a local coordinate system based on the reference point.

Member Data Documentation

◆ distance

double luciad::Camera::LookAt::distance

The distance between the camera location (eye) and the reference point.

◆ pitch

double luciad::Camera::LookAt::pitch

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.

◆ roll

double luciad::Camera::LookAt::roll

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.

◆ target

Coordinate luciad::Camera::LookAt::target

The point to which the camera is looking, expressed in the map reference.

This location maps to the center of the camera plane.

◆ yaw

Azimuth luciad::Camera::LookAt::yaw = 0.0

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.