Use Base::toRadians() instead of manually converting

This commit is contained in:
Benjamin Nauck
2025-04-09 09:14:54 +02:00
parent 1f8c8043fc
commit 21fbf8e539
43 changed files with 129 additions and 106 deletions

View File

@@ -533,7 +533,7 @@ void DrawSketchHandler::seekAlignmentAutoConstraint(
const Base::Vector2d& Dir)
{
using std::numbers::pi;
const double angleDevRad = 0.035; // 2 degrees in radians
constexpr double angleDevRad = Base::toRadians<double>(2);
AutoConstraint constr;
constr.Type = Sketcher::None;