MATRIX* ScaleMatrixL (
MATRIX*m,
VECTOR*v
)
|
Arguments
m |
Pointer to matrix (both input and result) |
v |
Pointer to scale vector |
Return Value
The scaled matrix m is returned.
Explanation
The matrix m is scaled by an amount specified by the scale vector v.
Each element of v is an integer with 4096 equivalent to 1.0.
If
|
a00 |
a01 |
a02 |
m =[ |
a10 |
a11 |
a12 |
] |
|
a20 |
a21 |
a22 |
and
then
|
a00*sx |
a01*sy |
a02*sz |
m =[ |
a10*sx |
a11*sy |
a12*sz |
] |
|
a20*sx |
a21*sy |
a22*sz |
The argument format is as follows:
m->m[i][j] : (1,3,12)
v->vx,vy,vz : (1,19,12)
See Also
MATRIX, VECTOR
|