14.4: Image › Rotate Canvas 90° Clockwise and Counterclockwise; quarter turns on whole pixels copy exactly

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 03:55:25 -04:00
1 parent 28cbe856e6
commit d8bb7b38b2
21 files changed
+419 -54

No files matched your search

+5
View File
@@ -89,6 +89,11 @@ double LayerTransform::radians() const
return std::fmod(rotation, 360) * std::numbers::pi / 180;
}
double LayerTransform::degrees() const
{
return std::fmod(rotation, 360);
}
bool LayerTransform::isValid() const
{
const std::array<double, 5> values = {origin.x(), origin.y(), size.width(), size.height(), rotation};