37 #ifndef _TRANSFORMATION3_HXX_ 38 #define _TRANSFORMATION3_HXX_ 51 Vector3() {elems[0]=0.; elems[1]=0.; elems[2]=0.;}
55 inline const T&
x()
const {
return elems[0];}
56 inline const T&
y()
const {
return elems[1];}
57 inline const T&
z()
const {
return elems[2];}
58 inline T&
x() {
return elems[0];}
59 inline T&
y() {
return elems[1];}
60 inline T&
z() {
return elems[2];}
63 inline const T&
roll()
const {
return elems[0];}
64 inline const T&
pitch()
const {
return elems[1];}
65 inline const T&
yaw()
const {
return elems[2];}
66 inline T&
roll() {
return elems[0];}
68 inline T&
yaw() {
return elems[2];}
125 Quaternion(
const T _roll_x_phi,
const T _pitch_y_theta,
const T _yaw_z_psi);
176 inline Quaternion withRotation (
const T alpha)
const;
191 inline T norm()
const;
213 template <
class T> std::ostream& operator << (std::ostream& os, const Quaternion<T>&
q);
238 inline void setTranslation(
const Vector3<T>& t);
239 inline void setTranslation(
const T& x,
const T& y,
const T& z);
242 inline void setRotation(
const T& roll,
const T& pitch,
const T& yaw);
247 inline bool validRotation(
const T&
epsilon=0.001)
const;
272 #include "transformation3.hxx"
Vector3(const DVector< T > &t)
DMatrix< T > InformationType
GLM_FUNC_DECL detail::tvec3< T, P > axis(detail::tquat< T, P > const &x)
Vector2< T > operator*(const T &d, const Vector2< T > &v)
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
Quaternion< T > RotationType
T innerproduct(const Quaternion< T > &left, const Quaternion< T > &right)
Pose3(const DVector< T > &v)
DMatrix< T > CovarianceType
Quaternion< T > slerp(const Quaternion< T > &from, const Quaternion< T > &to, const T lambda)
Transformation3< T > TransformationType
Vector3< T > TranslationType
Vector2< T > operator+(const Vector2< T > &v1, const Vector2< T > &v2)
GLM_FUNC_DECL detail::tquat< T, P > rotation(detail::tvec3< T, P > const &orig, detail::tvec3< T, P > const &dest)
Transformation3< T > ParametersType
Vector2< T > operator-(const Vector2< T > &v1, const Vector2< T > &v2)
GLM_FUNC_DECL matType< T, P > inverse(matType< T, P > const &m)