3#ifndef EULERROTATION_HPP
4#define EULERROTATION_HPP
34 :
x(_x),
y(_y),
z(_z),
order(_order) {}
The Euler rotation class.
Definition EulerRotation.hpp:17
double x
The amount of rotation about the local X axis in radians.
Definition EulerRotation.hpp:19
friend EulerRotation operator+(const EulerRotation &a, const EulerRotation &b)
Adds 2 Euler rotations.
Definition EulerRotation.hpp:58
EulerRotation & copy(const EulerRotation &source)
Copies another Euler rotation into this Euler rotation.
Definition EulerRotation.hpp:42
double y
The amount of rotation about the local Y axis in radians.
Definition EulerRotation.hpp:20
EulerRotation(double _x, double _y, double _z, EulerRotationOrder _order)
Creates a new representation of a rotation based on Euler angles.
Definition EulerRotation.hpp:33
double z
The amount of rotation about the local Z axis in radians.
Definition EulerRotation.hpp:21
friend EulerRotation operator-(const EulerRotation &a, const EulerRotation &b)
Substracts an Euler rotation from another Euler rotation.
Definition EulerRotation.hpp:70
EulerRotationOrder order
The order to perform the rotations around individual axes.
Definition EulerRotation.hpp:23
Contains various constants and enumerations.
The t software 3D graphics library namespace.
Definition algorithms.hpp:12
EulerRotationOrder
The Euler rotation order.
Definition constants.hpp:19