Use Base::toDegrees() instead of manually converting

This commit is contained in:
Benjamin Nauck
2025-04-09 09:52:39 +02:00
parent f932c7e4e0
commit 22120fa597
17 changed files with 38 additions and 37 deletions

View File

@@ -832,7 +832,7 @@ void DrawGuiUtil::rotateToAlign(DrawViewPart* view, const Base::Vector2d& oldDir
double toRotate = newDirection.GetAngle(oldDirection);
// Radians to degrees
toRotate = toRotate * 180 / std::numbers::pi;
toRotate = Base::toDegrees(toRotate);
// Rotate least amount possible
if(toRotate > 90) {