[Gui] use predefined M_PI
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user