Compute_Normalized_Matrix
Functions | |
HC_BOOLEAN | Compute_Normalized_Matrix (const float *matrix, float *out_matrix) |
HC_BOOLEAN | DCompute_Normalized_Matrix (const double *matrix, double *out_matrix) |
Similar to Compute_Normalized_Matrix, but operates on double-precision data. More... | |
Detailed Description
Function Documentation
◆ Compute_Normalized_Matrix()
HC_BOOLEAN Compute_Normalized_Matrix | ( | const float * | matrix, |
float * | out_matrix | ||
) |
- Parameters
-
matrix - Input transformation matrix. out_matrix - Output transformation matrix, returned to the caller. Can point to the same place as matrix.
- Returns
- success
DETAILS
Compute_Normalized_Matrix() takes a general 4x4 transformation and divides by its determinant. If the input matrix is singular, the out_matrix will be unchanged and false will be returned.
NOTES
If the matrix is singular, Compute_Matrix_Determinant() would return zero.
RESTRICTIONS
◆ DCompute_Normalized_Matrix()
HC_BOOLEAN DCompute_Normalized_Matrix | ( | const double * | matrix, |
double * | out_matrix | ||
) |
Similar to Compute_Normalized_Matrix, but operates on double-precision data.
- Parameters
-
matrix - Input transformation matrix. out_matrix - Output transformation matrix, returned to the caller. Can point to the same place as matrix.
- Returns
- success