dihedral: Fix matrices

We've convinced ourselves that the matrix for FLIPPED_90 must
be M(90) * M(FLIPPED), which means that the FLIPPED_90 and
FLIPPED_270 matrices are flipped.
This commit is contained in:
Matthias Clasen 2024-12-05 17:31:43 -05:00
parent 1e7e51b6e7
commit 305fad9a24

View File

@ -42,16 +42,16 @@ gdk_dihedral_get_mat2 (GdkDihedral transform,
{ 0.0, 1.0 }
},
[GDK_DIHEDRAL_FLIPPED_90] = {
{ 0.0, -1.0 },
{ -1.0, 0.0 }
{ 0.0, 1.0 },
{ 1.0, 0.0 }
},
[GDK_DIHEDRAL_FLIPPED_180] = {
{ 1.0, 0.0 },
{ 0.0, -1.0 }
},
[GDK_DIHEDRAL_FLIPPED_270] = {
{ 0.0, 1.0 },
{ 1.0, 0.0 }
{ 0.0, -1.0 },
{ -1.0, 0.0 }
},
};