[Gui] use predefined M_PI

This commit is contained in:
Uwe
2022-01-07 21:55:48 +01:00
parent 4199ff2c66
commit 9eb3012ecc

View File

@@ -108,8 +108,7 @@ SbBool SoGesturePinchEvent::isSoGesturePinchEvent(const SoEvent *ev) const
*/
double SoGesturePinchEvent::unbranchAngle(double ang)
{
const double Pi = 3.14159265358979323846;
return ang - 2.0*Pi*floor((ang+Pi)/(2.0*Pi));
return ang - 2.0 * M_PI * floor((ang + M_PI) / (2.0 * M_PI));
}