From 446001ef51be920649cb4f3c07848967b6788532 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 24 Sep 2014 09:39:09 +0200 Subject: Fix nested_eval > which wrongly returned a Product<> expression --- test/geo_orthomethods.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/geo_orthomethods.cpp') 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 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(); -- cgit v1.2.3