Compute_Matrix_Inverse
Functions | |
HC_BOOLEAN | Compute_Matrix_Inverse (const float *matrix, float *out_matrix) |
HC_BOOLEAN | DCompute_Matrix_Inverse (const double *matrix, double *out_matrix) |
Similar to Compute_Matrix_Inverse(), but operates on double-precision data. More... | |
Detailed Description
Function Documentation
◆ Compute_Matrix_Inverse()
HC_BOOLEAN Compute_Matrix_Inverse | ( | 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_Matrix_Inverse() takes a general 4x4 transformation and computes its inverse. If the 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. The adjoint (see Compute_Matrix_Adjoint() ) is similar and will always be defined, even for singular matrices. Consider using that instead where applicable.
RESTRICTIONS
◆ DCompute_Matrix_Inverse()
HC_BOOLEAN DCompute_Matrix_Inverse | ( | const double * | matrix, |
double * | out_matrix | ||
) |
Similar to Compute_Matrix_Inverse(), 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