aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-08-30 21:36:04 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-08-30 21:36:04 +0000
commit9c450a52a28e10f4caf87a968612fa8d007ce4b1 (patch)
treec95245adcfa486f6cf7d75bba3456bd226d778d3 /Eigen/src/Core
parent6ba991aa3a2ddd1a1ed1d64956aeab5cab680e54 (diff)
Split Rotation.h to Rotation2D.h and RotationBase.h,
and more code factorization based on RotationBase. Added notes about the main aim of the Translation and Scaling classes.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/Matrix.h8
-rw-r--r--Eigen/src/Core/util/ForwardDeclarations.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h
index 44e4c45b8..cf018ffef 100644
--- a/Eigen/src/Core/Matrix.h
+++ b/Eigen/src/Core/Matrix.h
@@ -364,10 +364,10 @@ class Matrix
/////////// Geometry module ///////////
- explicit Matrix(const Quaternion<Scalar>& q);
- Matrix& operator=(const Quaternion<Scalar>& q);
- explicit Matrix(const AngleAxis<Scalar>& aa);
- Matrix& operator=(const AngleAxis<Scalar>& aa);
+ template<typename OtherDerived>
+ explicit Matrix(const RotationBase<OtherDerived,ColsAtCompileTime>& r);
+ template<typename OtherDerived>
+ Matrix& operator=(const RotationBase<OtherDerived,ColsAtCompileTime>& r);
};
/** \defgroup matrixtypedefs Global matrix typedefs
diff --git a/Eigen/src/Core/util/ForwardDeclarations.h b/Eigen/src/Core/util/ForwardDeclarations.h
index b85ef94f7..015f4e5b7 100644
--- a/Eigen/src/Core/util/ForwardDeclarations.h
+++ b/Eigen/src/Core/util/ForwardDeclarations.h
@@ -100,6 +100,7 @@ template<typename MatrixType> class Cholesky;
template<typename MatrixType> class CholeskyWithoutSquareRoot;
// Geometry module:
+template<typename Derived, int _Dim> class RotationBase;
template<typename Lhs, typename Rhs> class Cross;
template<typename Scalar> class Quaternion;
template<typename Scalar> class Rotation2D;