mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
util/matrix: add matrix_invert()
This commit is contained in:
parent
9dbf5b9f6b
commit
420b60f203
2 changed files with 31 additions and 0 deletions
|
|
@ -39,4 +39,11 @@ void wlr_matrix_project_box(float mat[static 9], const struct wlr_box *box,
|
|||
void matrix_projection(float mat[static 9], int width, int height,
|
||||
enum wl_output_transform transform);
|
||||
|
||||
/**
|
||||
* Compute the inverse of a matrix.
|
||||
*
|
||||
* The matrix needs to be inversible.
|
||||
*/
|
||||
void matrix_invert(float out[static 9], float m[static 9]);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue