aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry/AngleAxis.h
diff options
context:
space:
mode:
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 */