Compute_Scale_Matrix
Functions | |
void | Compute_Scale_Matrix (double x, double y, double z, float *out_matrix) |
void | DCompute_Scale_Matrix (double x, double y, double z, double *out_matrix) |
Similar to Compute_Scale_Matrix, but operates on double-precision data. More... | |
Detailed Description
Function Documentation
◆ Compute_Scale_Matrix()
void Compute_Scale_Matrix | ( | double | x, |
double | y, | ||
double | z, | ||
float * | out_matrix | ||
) |
- Parameters
-
x - Scale multiplier in the X direction. y - Scale multiplier in the Y direction. z - Scale multiplier in the Z direction. out_matrix - Output transformation matrix, returned to the caller.
DETAILS
Compute_Scale_Matrix() produces a matrix representing a uniform scaling of the scene. x, y, and z are the scalings along the X, Y, and Z axes. These scale values are commonly positive and identical, but they do not need to be. Note, if any of (x, y, z) are zero, the matrix that results will be singular (non-invertible.)
NOTES
RESTRICTIONS
◆ DCompute_Scale_Matrix()
void DCompute_Scale_Matrix | ( | double | x, |
double | y, | ||
double | z, | ||
double * | out_matrix | ||
) |
Similar to Compute_Scale_Matrix, but operates on double-precision data.
- Parameters
-
x - Scale multiplier in the X direction. y - Scale multiplier in the Y direction. z - Scale multiplier in the Z direction. out_matrix - Output transformation matrix, returned to the caller.