Revert "Geometry/EulerAngles: make sure that returned solution has canonical ranges"

This reverts commit 7f06bcae2c
This commit is contained in:
Rasmus Munk Larsen
2023-04-27 00:06:23 +00:00
parent 2d0c6ad873
commit 0b51f763cb
3 changed files with 21 additions and 70 deletions

View File

@@ -400,7 +400,7 @@ template<typename Derived> class MatrixBase
inline PlainObject unitOrthogonal(void) const;
EIGEN_DEVICE_FUNC
inline Matrix<Scalar,3,1> eulerAngles(Index a0, Index a1, Index a2, bool canonical = true) const;
inline Matrix<Scalar,3,1> eulerAngles(Index a0, Index a1, Index a2) const;
// put this as separate enum value to work around possible GCC 4.3 bug (?)
enum { HomogeneousReturnTypeDirection = ColsAtCompileTime==1&&RowsAtCompileTime==1 ? ((internal::traits<Derived>::Flags&RowMajorBit)==RowMajorBit ? Horizontal : Vertical)