FEM: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -88,7 +88,7 @@ void ViewProviderFemConstraintForce::transformSymbol(const Base::Vector3d& point
|
||||
// Place each symbol outside the boundary
|
||||
Base::Vector3d dir = (rev ? -1.0 : 1.0) * obj->DirectionVector.getValue();
|
||||
float symTraY = dir.Dot(normal) < 0 ? -1 * symLen : 0.0f;
|
||||
float rotAngle = rev ? F_PI : 0.0f;
|
||||
float rotAngle = rev ? std::numbers::pi_v<float> : 0.0f;
|
||||
SbMatrix mat0, mat1;
|
||||
mat0.setTransform(SbVec3f(0, symTraY, 0),
|
||||
SbRotation(SbVec3f(0, 0, 1), rotAngle),
|
||||
|
||||
Reference in New Issue
Block a user