Skip to content

Commit

Permalink
Don't use absolute rotation angle
Browse files Browse the repository at this point in the history
Preserving the sign indicates which way rotation occurs.
  • Loading branch information
drewnoakes committed Oct 8, 2020
1 parent cfd541e commit 961ad72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/com/drew/metadata/mov/atoms/TrackHeaderAtom.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void addMetadata(QuickTimeDirectory directory) {
double y = matrix[0] + matrix[3];
double theta = Math.atan2(y, x);
double degree = Math.toDegrees(theta) - 45;
directory.setDouble(QuickTimeDirectory.TAG_ROTATION, Math.abs(degree));
directory.setDouble(QuickTimeDirectory.TAG_ROTATION, degree);
}
}
}

0 comments on commit 961ad72

Please sign in to comment.