LuciadCPillar 2023.1.04
luciad::Camera::LookFrom Struct Reference

Structure describing the position and orientation of the camera. More...

#include <luciad/cameras/Camera.h>

Public Member Functions

 LookFrom (Coordinate eye, Azimuth yaw, double pitch, double roll)
 Constructs the LookFrom. More...
 

Public Attributes

Coordinate eye
 The location of the camera, expressed in the map reference. More...
 
double pitch
 The pitch angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point. More...
 
double roll
 The roll angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point. More...
 
Azimuth yaw = 0.0
 The yaw angle of the viewer, defined with respected to a local coordinate system based on the eye point. More...
 

Detailed Description

Structure describing the position and orientation of the camera.

Constructor & Destructor Documentation

◆ LookFrom()

luciad::Camera::LookFrom::LookFrom ( Coordinate  eye,
Azimuth  yaw,
double  pitch,
double  roll 
)
inline

Constructs the LookFrom.

Parameters
eyeThe location of the camera, expressed in the map reference.
yawThe yaw angle of the viewer, defined with respected to a local coordinate system based on the eye point.
pitchThe pitch angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.
rollThe roll angle of the viewer in degrees, defined with respected to a local coordinate system based on the eye point.

Member Data Documentation

◆ eye

Coordinate luciad::Camera::LookFrom::eye

The location of the camera, expressed in the map reference.

This location maps to the center of the camera plane.

◆ pitch

double luciad::Camera::LookFrom::pitch

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.

◆ roll

double luciad::Camera::LookFrom::roll

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.

◆ yaw

Azimuth luciad::Camera::LookFrom::yaw = 0.0

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.