Fix rotation matrix
https://bugs.kde.org/show_bug.cgi?id=344155
http://commits.kde.org/libkexiv2/5a716d237a6c379c6300df2b1cc8d25b9ccd9773
old
|
new
|
|
65 | 65 | (I did not proof that mathematically, but empirically) |
66 | 66 | |
67 | 67 | static const RotationMatrix identity; //( 1, 0, 0, 1) |
68 | | static const RotationMatrix rotate90; //( 0, -1, 1, 0) |
| 68 | static const RotationMatrix rotate90; //( 0, 1, -1, 0) |
69 | 69 | static const RotationMatrix rotate180; //(-1, 0, 0, -1) |
70 | | static const RotationMatrix rotate270; //( 0, 1, -1, 0) |
| 70 | static const RotationMatrix rotate270; //( 0, -1, 1, 0) |
71 | 71 | static const RotationMatrix flipHorizontal; //(-1, 0, 0, 1) |
72 | 72 | static const RotationMatrix flipVertical; //( 1, 0, 0, -1) |
73 | 73 | static const RotationMatrix rotate90flipHorizontal; //( 0, 1, 1, 0), first rotate, then flip |
… |
… |
|
79 | 79 | { |
80 | 80 | |
81 | 81 | static const RotationMatrix identity ( 1, 0, 0, 1); |
82 | | static const RotationMatrix rotate90 ( 0, -1, 1, 0); |
| 82 | static const RotationMatrix rotate90 ( 0, 1, -1, 0); |
83 | 83 | static const RotationMatrix rotate180 (-1, 0, 0, -1); |
84 | | static const RotationMatrix rotate270 ( 0, 1, -1, 0); |
| 84 | static const RotationMatrix rotate270 ( 0, -1, 1, 0); |
85 | 85 | static const RotationMatrix flipHorizontal (-1, 0, 0, 1); |
86 | 86 | static const RotationMatrix flipVertical ( 1, 0, 0, -1); |
87 | 87 | static const RotationMatrix rotate90flipHorizontal ( 0, 1, 1, 0); |