aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_orthomethods.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-09-07 12:53:25 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-09-07 12:53:25 +0200
commitfb5f546161fd3c4620bad9a8aef71faa7f520d1e (patch)
treea1f664df14f1f3618041073561719b18613e6310 /test/geo_orthomethods.cpp
parentb56bb441ddbd3e0a5b58a6642fafc99ff30340cf (diff)
improve coverage of unitOrthogonal
Diffstat (limited to 'test/geo_orthomethods.cpp')
-rw-r--r--test/geo_orthomethods.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/geo_orthomethods.cpp b/test/geo_orthomethods.cpp
index 5e1d5bdb4..540a63b82 100644
--- a/test/geo_orthomethods.cpp
+++ b/test/geo_orthomethods.cpp
@@ -86,10 +86,10 @@ template<typename Scalar, int Size> void orthomethods(int size=Size)
VERIFY_IS_MUCH_SMALLER_THAN(v0.unitOrthogonal().dot(v0), Scalar(1));
VERIFY_IS_APPROX(v0.unitOrthogonal().norm(), RealScalar(1));
- if (size>3)
+ if (size>=3)
{
- v0.template start<3>().setZero();
- v0.end(size-3).setRandom();
+ v0.template start<2>().setZero();
+ v0.end(size-2).setRandom();
VERIFY_IS_MUCH_SMALLER_THAN(v0.unitOrthogonal().dot(v0), Scalar(1));
VERIFY_IS_APPROX(v0.unitOrthogonal().norm(), RealScalar(1));