VKVG  
Vulkan Vector Graphics

◆ vkvg_matrix_invert()

vkvg_status_t vkvg_matrix_invert ( vkvg_matrix_t matrix)

Changes matrix to be the inverse of its original value. Not all transformation matrices have inverses; if the matrix collapses points together (it is degenerate), then it has no inverse and this function will fail.

Parameters
matrixthe matrix to invert
Returns
If matrix has an inverse, modifies matrix to be the inverse matrix and returns VKVG_STATUS_SUCCESS. Otherwise, returns VKVG_STATUS_INVALID_MATRIX.