BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::RealSpace::Camera::Position Struct Reference

Description

Definition at line 36 of file camera.h.

Collaboration diagram for GUI::RealSpace::Camera::Position:
[legend]

Public Member Functions

 Position ()
 
 Position (const Vector3D &eye, const Vector3D &ctr, const Vector3D &up, const QQuaternion &={})
 
Position interpolateTo (const Position &, float) const
 

Public Attributes

Vector3D ctr
 
Vector3D eye
 
QQuaternion rot
 
Vector3D up
 

Constructor & Destructor Documentation

◆ Position() [1/2]

GUI::RealSpace::Camera::Position::Position ( )

◆ Position() [2/2]

GUI::RealSpace::Camera::Position::Position ( const Vector3D eye,
const Vector3D ctr,
const Vector3D up,
const QQuaternion &  rot_ = {} 
)

Definition at line 36 of file camera.cpp.

38  : eye(eye_)
39  , ctr(ctr_)
40  , up(up_)
41  , rot(rot_)
42 {
43 }

Member Function Documentation

◆ interpolateTo()

Camera::Position GUI::RealSpace::Camera::Position::interpolateTo ( const Position to,
float  r 
) const

Definition at line 45 of file camera.cpp.

46 {
47  return Position(eye.interpolateTo(to.eye, r), ctr.interpolateTo(to.ctr, r),
48  up.interpolateTo(to.up, r), QQuaternion::slerp(rot, to.rot, r));
49 }
Vector3D interpolateTo(const Vector3D &, float) const
Definition: def.cpp:54

References ctr, eye, rot, and up.

Member Data Documentation

◆ ctr

◆ eye

◆ rot

QQuaternion GUI::RealSpace::Camera::Position::rot

◆ up


The documentation for this struct was generated from the following files: