diff options
author | 2008-12-22 20:50:47 +0000 | |
---|---|---|
committer | 2008-12-22 20:50:47 +0000 | |
commit | 789ea9d6762b2a0b2c737978f83939853cdb9fc3 (patch) | |
tree | a24c40b1ea4683edc86887c7e3a70ed029d1298b /Eigen/src/Geometry | |
parent | 4336cf3833d87bc1c8b4c9ef6f884547c80e31f0 (diff) |
unless i find more failures in the tests, this will be beta3...
* fixes for mistakes (especially in the cast() methods in Geometry) revealed by the new "mixing types" test
* dox love, including a section on coeff access in core and an overview in geometry
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r-- | Eigen/src/Geometry/AlignedBox.h | 4 | ||||
-rw-r--r-- | Eigen/src/Geometry/AngleAxis.h | 2 | ||||
-rw-r--r-- | Eigen/src/Geometry/Hyperplane.h | 2 | ||||
-rw-r--r-- | Eigen/src/Geometry/ParametrizedLine.h | 4 | ||||
-rw-r--r-- | Eigen/src/Geometry/Quaternion.h | 2 | ||||
-rw-r--r-- | Eigen/src/Geometry/Scaling.h | 2 | ||||
-rw-r--r-- | Eigen/src/Geometry/Transform.h | 2 | ||||
-rw-r--r-- | Eigen/src/Geometry/Translation.h | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/Eigen/src/Geometry/AlignedBox.h b/Eigen/src/Geometry/AlignedBox.h index 3d4608e73..a835d0edd 100644 --- a/Eigen/src/Geometry/AlignedBox.h +++ b/Eigen/src/Geometry/AlignedBox.h @@ -142,8 +142,8 @@ public: template<typename OtherScalarType> inline explicit AlignedBox(const AlignedBox<OtherScalarType,AmbientDimAtCompileTime>& other) { - m_min = other.min().template cast<OtherScalarType>(); - m_max = other.max().template cast<OtherScalarType>(); + m_min = other.min().template cast<Scalar>(); + m_max = other.max().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision diff --git a/Eigen/src/Geometry/AngleAxis.h b/Eigen/src/Geometry/AngleAxis.h index d5667190f..289b3e62d 100644 --- a/Eigen/src/Geometry/AngleAxis.h +++ b/Eigen/src/Geometry/AngleAxis.h @@ -146,7 +146,7 @@ public: template<typename OtherScalarType> inline explicit AngleAxis(const AngleAxis<OtherScalarType>& other) { - m_axis = other.axis().template cast<OtherScalarType>(); + m_axis = other.axis().template cast<Scalar>(); m_angle = other.angle(); } diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 98611d146..666411ab0 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -254,7 +254,7 @@ public: /** Copy constructor with scalar type conversion */ template<typename OtherScalarType> inline explicit Hyperplane(const Hyperplane<OtherScalarType,AmbientDimAtCompileTime>& other) - { m_coeffs = other.coeffs().template cast<OtherScalarType>(); } + { m_coeffs = other.coeffs().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision * determined by \a prec. diff --git a/Eigen/src/Geometry/ParametrizedLine.h b/Eigen/src/Geometry/ParametrizedLine.h index b344493c7..5a73b0fde 100644 --- a/Eigen/src/Geometry/ParametrizedLine.h +++ b/Eigen/src/Geometry/ParametrizedLine.h @@ -118,8 +118,8 @@ public: template<typename OtherScalarType> inline explicit ParametrizedLine(const ParametrizedLine<OtherScalarType,AmbientDimAtCompileTime>& other) { - m_origin = other.origin().template cast<OtherScalarType>(); - m_direction = other.direction().template cast<OtherScalarType>(); + m_origin = other.origin().template cast<Scalar>(); + m_direction = other.direction().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index f6630e63e..02c9e3075 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -207,7 +207,7 @@ public: /** Copy constructor with scalar type conversion */ template<typename OtherScalarType> inline explicit Quaternion(const Quaternion<OtherScalarType>& other) - { m_coeffs = other.coeffs().template cast<OtherScalarType>(); } + { m_coeffs = other.coeffs().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision * determined by \a prec. diff --git a/Eigen/src/Geometry/Scaling.h b/Eigen/src/Geometry/Scaling.h index 54b01d8a0..c8550ec17 100644 --- a/Eigen/src/Geometry/Scaling.h +++ b/Eigen/src/Geometry/Scaling.h @@ -140,7 +140,7 @@ public: /** Copy constructor with scalar type conversion */ template<typename OtherScalarType> inline explicit Scaling(const Scaling<OtherScalarType,Dim>& other) - { m_coeffs = other.coeffs().template cast<OtherScalarType>(); } + { m_coeffs = other.coeffs().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision * determined by \a prec. diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index d62a9c98d..700246610 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -271,7 +271,7 @@ public: /** Copy constructor with scalar type conversion */ template<typename OtherScalarType> inline explicit Transform(const Transform<OtherScalarType,Dim>& other) - { m_matrix = other.matrix().template cast<OtherScalarType>(); } + { m_matrix = other.matrix().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision * determined by \a prec. diff --git a/Eigen/src/Geometry/Translation.h b/Eigen/src/Geometry/Translation.h index eec829690..d1a3d354b 100644 --- a/Eigen/src/Geometry/Translation.h +++ b/Eigen/src/Geometry/Translation.h @@ -143,7 +143,7 @@ public: /** Copy constructor with scalar type conversion */ template<typename OtherScalarType> inline explicit Translation(const Translation<OtherScalarType,Dim>& other) - { m_coeffs = other.vector().template cast<OtherScalarType>(); } + { m_coeffs = other.vector().template cast<Scalar>(); } /** \returns \c true if \c *this is approximately equal to \a other, within the precision * determined by \a prec. |