* add CommaInitializer::finished to allow the use of (Matrix3() << v0, v1, v2).finished()

as an argument of a function. Other possibilities for the name could be "end" or "matrix" ??
* various update in Quaternion, in particular I added a lot of FIXME about the API options,
  these have to be discussed and fixed.
This commit is contained in:
Gael Guennebaud
2008-06-03 15:50:09 +00:00
parent 196f38f5db
commit 915587d03d
4 changed files with 46 additions and 10 deletions

View File

@@ -71,6 +71,10 @@ template<typename Scalar> void geometry(void)
VERIFY_IS_APPROX(v2.normalized(),(q2.fromTwoVectors(v1,v2)*v1).normalized());
VERIFY_IS_APPROX(v2.normalized(),(q2.fromTwoVectors(v1,v2)*v1).normalized());
// inverse and conjugate
VERIFY_IS_APPROX(q1 * (q1.inverse() * v1), v1);
VERIFY_IS_APPROX(q1 * (q1.conjugate() * v1), v1);
// cross product
VERIFY_IS_MUCH_SMALLER_THAN(v1.cross(v2).dot(v1), Scalar(1));
Matrix3 m;