mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
matrix: drop wlr_matrix_transpose()
It's unused.
This commit is contained in:
parent
9b55737cf5
commit
7d1f535e49
2 changed files with 0 additions and 11 deletions
|
|
@ -12,8 +12,6 @@ void wlr_matrix_identity(float mat[static 9]);
|
|||
void wlr_matrix_multiply(float mat[static 9], const float a[static 9],
|
||||
const float b[static 9]);
|
||||
|
||||
void wlr_matrix_transpose(float mat[static 9], const float a[static 9]);
|
||||
|
||||
/** Writes a 2D translation matrix to mat of magnitude (x, y) */
|
||||
void wlr_matrix_translate(float mat[static 9], float x, float y);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,15 +33,6 @@ void wlr_matrix_multiply(float mat[static 9], const float a[static 9],
|
|||
memcpy(mat, product, sizeof(product));
|
||||
}
|
||||
|
||||
void wlr_matrix_transpose(float mat[static 9], const float a[static 9]) {
|
||||
float transposition[9] = {
|
||||
a[0], a[3], a[6],
|
||||
a[1], a[4], a[7],
|
||||
a[2], a[5], a[8],
|
||||
};
|
||||
memcpy(mat, transposition, sizeof(transposition));
|
||||
}
|
||||
|
||||
void wlr_matrix_translate(float mat[static 9], float x, float y) {
|
||||
float translate[9] = {
|
||||
1.0f, 0.0f, x,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue