Base: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -99,7 +99,8 @@ int PlacementPy::PyInit(PyObject* args, PyObject* /*kwd*/)
|
||||
&angle)) {
|
||||
// NOTE: The first parameter defines the translation, the second the rotation axis
|
||||
// and the last parameter defines the rotation angle in degree.
|
||||
Base::Rotation rot(static_cast<Base::VectorPy*>(d)->value(), angle / 180.0 * D_PI);
|
||||
Base::Rotation rot(static_cast<Base::VectorPy*>(d)->value(),
|
||||
angle / 180.0 * std::numbers::pi);
|
||||
*getPlacementPtr() = Base::Placement(static_cast<Base::VectorPy*>(o)->value(), rot);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user