Lines Matching defs:AngleAxis
17 * \class AngleAxis
23 * \warning When setting up an AngleAxis object, the axis vector \b must \b be \b normalized.
29 * Combined with MatrixBase::Unit{X,Y,Z}, AngleAxis can be used to easily
42 template<typename _Scalar> struct traits<AngleAxis<_Scalar> >
49 class AngleAxis : public RotationBase<AngleAxis<_Scalar>,3>
51 typedef RotationBase<AngleAxis<_Scalar>,3> Base;
72 AngleAxis() {}
79 inline AngleAxis(Scalar angle, const MatrixBase<Derived>& axis) : m_axis(axis), m_angle(angle) {}
81 template<typename QuatDerived> inline explicit AngleAxis(const QuaternionBase<QuatDerived>& q) { *this = q; }
84 inline explicit AngleAxis(const MatrixBase<Derived>& m) { *this = m; }
93 inline QuaternionType operator* (const AngleAxis& other) const
101 friend inline QuaternionType operator* (const QuaternionType& a, const AngleAxis& b)
105 AngleAxis inverse() const
106 { return AngleAxis(-m_angle, m_axis); }
109 AngleAxis& operator=(const QuaternionBase<QuatDerived>& q);
111 AngleAxis& operator=(const MatrixBase<Derived>& m);
114 AngleAxis& fromRotationMatrix(const MatrixBase<Derived>& m);
123 inline typename internal::cast_return_type<AngleAxis,AngleAxis<NewScalarType> >::type cast() const
124 { return typename internal::cast_return_type<AngleAxis,AngleAxis<NewScalarType> >::type(*this); }
128 inline explicit AngleAxis(const AngleAxis<OtherScalarType>& other)
134 static inline const AngleAxis Identity() { return AngleAxis(0, Vector3::UnitX()); }
140 bool isApprox(const AngleAxis& other, typename NumTraits<Scalar>::Real prec = NumTraits<Scalar>::dummy_precision()) const
146 typedef AngleAxis<float> AngleAxisf;
149 typedef AngleAxis<double> AngleAxisd;
159 AngleAxis<Scalar>& AngleAxis<Scalar>::operator=(const QuaternionBase<QuatDerived>& q)
182 AngleAxis<Scalar>& AngleAxis<Scalar>::operator=(const MatrixBase<Derived>& mat)
194 AngleAxis<Scalar>& AngleAxis<Scalar>::fromRotationMatrix(const MatrixBase<Derived>& mat)
202 typename AngleAxis<Scalar>::Matrix3
203 AngleAxis<Scalar>::toRotationMatrix(void) const