Brief Index      Full Index      Events Index      I.M. Reference

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)
 

Detailed Description

Function Documentation

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

See Also
Compute_Coordinates, Set_Modelling_Matrix, Show_Device_Info
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.

Brief Index      Full Index      Events Index      I.M. Reference