mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 12:40:10 +00:00
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:
parent
1e7e51b6e7
commit
305fad9a24
@ -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 }
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user