aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry/AngleAxis.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-08-30 20:11:04 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-08-30 20:11:04 +0000
commit6ba991aa3a2ddd1a1ed1d64956aeab5cab680e54 (patch)
treef7f2aef74c7483bea393f717e08096d57b52e820 /Eigen/src/Geometry/AngleAxis.h
parent027ee14f31d98e9759a93d4c4f1bf1f2880f200a (diff)
* added a RotationBase class following the CRT pattern
This allow code factorization and generic template specialization of functions * added any_rotation * {Translation,Scaling,Transform} products methods * rewrite of the actually broken ToRoationMatrix helper class to a global ei_toRotationMatrix function.
Diffstat (limited to 'Eigen/src/Geometry/AngleAxis.h')
-rw-r--r--Eigen/src/Geometry/AngleAxis.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/AngleAxis.h b/Eigen/src/Geometry/AngleAxis.h
index 502cbd0ec..0d43b277e 100644
--- a/Eigen/src/Geometry/AngleAxis.h
+++ b/Eigen/src/Geometry/AngleAxis.h
@@ -46,9 +46,18 @@
*
* \sa class Quaternion, class Transform, MatrixBase::UnitX()
*/
+
+template<typename _Scalar> struct ei_traits<AngleAxis<_Scalar> >
+{
+ typedef _Scalar Scalar;
+};
+
template<typename _Scalar>
-class AngleAxis
+class AngleAxis : public RotationBase<AngleAxis<_Scalar>,3>
{
+ typedef RotationBase<AngleAxis<_Scalar>,3> Base;
+ using Base::operator*;
+
public:
enum { Dim = 3 };
/** the scalar type of the coefficients */