diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-09-24 09:39:09 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-09-24 09:39:09 +0200 |
commit | 446001ef51be920649cb4f3c07848967b6788532 (patch) | |
tree | 56e06704ed663fa2e79badb713ae6b4f9c2b1525 /test/geo_orthomethods.cpp | |
parent | 13cbc751c92248e0dfa969bfe5f5060773ac9972 (diff) |
Fix nested_eval<Product<> > which wrongly returned a Product<> expression
Diffstat (limited to 'test/geo_orthomethods.cpp')
-rw-r--r-- | test/geo_orthomethods.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/geo_orthomethods.cpp b/test/geo_orthomethods.cpp index 7f8beb205..e178df257 100644 --- a/test/geo_orthomethods.cpp +++ b/test/geo_orthomethods.cpp @@ -39,7 +39,10 @@ template<typename Scalar> void orthomethods_3() (v0.cross(v1)).normalized(), (v0.cross(v1).cross(v0)).normalized(); VERIFY(mat3.isUnitary()); - + + mat3.setRandom(); + VERIFY_IS_APPROX(v0.cross(mat3*v1), -(mat3*v1).cross(v0)); + VERIFY_IS_APPROX(v0.cross(mat3.lazyProduct(v1)), -(mat3.lazyProduct(v1)).cross(v0)); // colwise/rowwise cross product mat3.setRandom(); |