Use Base::toDegrees() instead of manually converting

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

View File

@@ -2353,7 +2353,7 @@ Py::Object FunctionExpression::evaluate(const Expression *expr, int f, const std
switch (f) {
case VANGLE:
return Py::asObject(new QuantityPy(new Quantity(vector1.GetAngle(vector2) * 180 / pi, Unit::Angle)));
return Py::asObject(new QuantityPy(new Quantity(Base::toDegrees(vector1.GetAngle(vector2)), Unit::Angle)));
case VCROSS:
return Py::asObject(new Base::VectorPy(vector1.Cross(vector2)));
case VDOT: