Browse Source

Math: clarify what Matrix4::lookAt() does.

pull/187/head^2
Vladimír Vondruš 10 years ago
parent
commit
5fcdd48808
  1. 6
      src/Magnum/Math/Matrix4.h

6
src/Magnum/Math/Matrix4.h

@ -341,6 +341,12 @@ template<class T> class Matrix4: public Matrix4x4<T> {
* @param target Location towards which the matrix is oriented
* @param up Vector as a guide of which way is up (should not be
* the same direction as `target - eye`)
*
* @attention This function transforms an object so it's at @p eye
* position and oriented towards @p target, it does *not* produce
* a camera matrix. If you want to get the same what equivalent
* call to the well-known `gluLookAt()` would produce, invert the
* result using @ref invertedRigid().
*/
static Matrix4<T> lookAt(const Vector3<T>& eye, const Vector3<T>& target, const Vector3<T>& up);

Loading…
Cancel
Save