Clarify QMatrix4x4::lookAt() docs

Task-number: QTBUG-44603
Change-Id: I72d143a5d9ddd31ab1b64788cc0e2dd4fca2531c
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
bb10
Laszlo Agocs 2015-03-02 16:25:25 +01:00 committed by Konstantin Ritt
parent da681a41cb
commit e8f4ae5559
1 changed files with 7 additions and 4 deletions

View File

@ -1523,10 +1523,13 @@ void QMatrix4x4::perspective(float verticalAngle, float aspectRatio, float nearP
#ifndef QT_NO_VECTOR3D
/*!
Multiplies this matrix by another that applies an \a eye position
transformation. The \a center value indicates the center of the
view that the \a eye is looking at. The \a up value indicates
which direction should be considered up with respect to the \a eye.
Multiplies this matrix by a viewing matrix derived from an eye
point. The \a center value indicates the center of the view that
the \a eye is looking at. The \a up value indicates which direction
should be considered up with respect to the \a eye.
\note The \a up vector must not be parallel to the line of sight
from \a eye to \a center.
*/
void QMatrix4x4::lookAt(const QVector3D& eye, const QVector3D& center, const QVector3D& up)
{