| Microsoft DirectX 8.1 (Visual Basic) |
Builds a transformation matrix.
D3DXMatrixTransformation( _
MOut As D3DMATRIX, _
VScaleCenter As D3DVECTOR, _
QScaleRotation As D3DQUATERNION, _
VScale As D3DVECTOR, _
VRotationCenter As D3DVECTOR, _
QRotation As D3DQUATERNION, _
VTranslation As D3DVECTOR)
If the function fails, an error is raised and Err.Number can be set to one of the following values.
| D3DERR_INVALIDCALL |
| D3DERR_OUTOFVIDEOMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
The D3DXMatrixTransformation function calculates the transformation matrix with the following formula: Msc-1 * Msr-1 * Ms * Msr * Msc * Mrc-1 * Mr * Mrc * Mt, where Msc is the center scaling matrix, Msr is the scaling rotation matrix, Ms is the scaling matrix, Mrc is the center of rotation matrix, Mr is the rotation matrix, and Mt is the translation matrix.