Use Base::toDegrees() instead of manually converting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user