diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-01-04 21:24:43 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-01-04 21:24:43 -0500 |
commit | 39ac57fa6ddf9a74d9a6cc213293914d2e05ec31 (patch) | |
tree | 6c5c83c68ca023799bc09ebcbe150f894cb33b3b /test/geo_orthomethods.cpp | |
parent | 78ba523d3038b854c5beca7a94cbe9b7e955a9f3 (diff) |
Big renaming:
start ---> head
end ---> tail
Much frustration with sed syntax. Need to learn perl some day.
Diffstat (limited to 'test/geo_orthomethods.cpp')
-rw-r--r-- | test/geo_orthomethods.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/geo_orthomethods.cpp b/test/geo_orthomethods.cpp index 54a6febab..9f1113559 100644 --- a/test/geo_orthomethods.cpp +++ b/test/geo_orthomethods.cpp @@ -66,7 +66,7 @@ template<typename Scalar> void orthomethods_3() v41 = Vector4::Random(), v42 = Vector4::Random(); v40.w() = v41.w() = v42.w() = 0; - v42.template start<3>() = v40.template start<3>().cross(v41.template start<3>()); + v42.template head<3>() = v40.template head<3>().cross(v41.template head<3>()); VERIFY_IS_APPROX(v40.cross3(v41), v42); } @@ -88,8 +88,8 @@ template<typename Scalar, int Size> void orthomethods(int size=Size) if (size>=3) { - v0.template start<2>().setZero(); - v0.end(size-2).setRandom(); + v0.template head<2>().setZero(); + v0.tail(size-2).setRandom(); VERIFY_IS_MUCH_SMALLER_THAN(v0.unitOrthogonal().dot(v0), Scalar(1)); VERIFY_IS_APPROX(v0.unitOrthogonal().norm(), RealScalar(1)); |