Can someone please explain to me what does this function do :
void QMatrix4x4::rotate ( const QQuaternion & quaternion )
In the documentation, it's written that it multiples this matrix by another that rotates coordinates according to a specified quaternion. The question is which matrix is " this matrix" ? does it calculate a rotation matrix ?
CodePudding user response:
The question is which matrix is "this matrix" ?
"This matrix" refers to the matrix that this member function is called on.
does it calculate a rotation matrix ?
According to this source code, yes. The current matrix is multiplied by a rotation matrix that corresponds to the quaternion.