aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-12-06 11:04:33 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-12-06 11:04:33 +0000
commit9c0deb55cabffe00ed8c853eace67b57acb37386 (patch)
treea93131c63218ec400d28c741b5950bc9ccac4046 /test
parentfaf942a94703208ca740e78b386443afb4505c60 (diff)
bugfix in matrix to Euler-angles function
Diffstat (limited to 'test')
-rw-r--r--test/geometry.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/geometry.cpp b/test/geometry.cpp
index af23bce82..97782213b 100644
--- a/test/geometry.cpp
+++ b/test/geometry.cpp
@@ -320,7 +320,9 @@ template<typename Scalar> void geometry(void)
VERIFY_IS_APPROX(r2d1d.template cast<Scalar>(),r2d1);
m = q1;
-
+// m.col(1) = Vector3(0,ei_random<Scalar>(),ei_random<Scalar>()).normalized();
+// m.col(0) = Vector3(-1,0,0).normalized();
+// m.col(2) = m.col(0).cross(m.col(1));
#define VERIFY_EULER(I,J,K, X,Y,Z) { \
Vector3 ea = m.eulerAngles(I,J,K); \
Matrix3 m1 = Matrix3(AngleAxisx(ea[0], Vector3::Unit##X()) * AngleAxisx(ea[1], Vector3::Unit##Y()) * AngleAxisx(ea[2], Vector3::Unit##Z())); \