| Microsoft DirectX 8.1 (Visual Basic) | 
Builds an affine transformation matrix.
D3DXMatrixAffineTransformation( _ 
    MOut As D3DMATRIX, _ 
    Scaling As Single, _ 
    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 D3DXMatrixAffineTransformation function calculates the affine transformation matrix with the following formula: Ms * Mrc-1 * Mr * Mrc * Mt, where Ms is the scaling matrix, Mrc is the center of rotation matrix, Mr is the rotation matrix, and Mt is the translation matrix.