From: jfa Date: Thu, 22 Dec 2011 12:45:26 +0000 (+0000) Subject: Porting to OCCT development version: Standard_PI -> M_PI X-Git-Tag: pxsxl1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ccd15dc020c0a8afcbba9113324fa87d042122d;p=modules%2Fgui.git Porting to OCCT development version: Standard_PI -> M_PI --- diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index 7c4cda7e4..148097541 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -474,8 +474,8 @@ void OCCViewer_ViewPort3d::rotate( int x, int y, dx = dy = 0.; } else { - dx = (Standard_Real(x) - sx) * Standard_PI/rx; - dy = (sy - Standard_Real(y)) * Standard_PI/ry; + dx = (Standard_Real(x) - sx) * M_PI/rx; + dy = (sy - Standard_Real(y)) * M_PI/ry; dz = 0.; } @@ -583,7 +583,7 @@ void OCCViewer_ViewPort3d::rotateXY( double degrees ) int x = width()/2, y = height()/2; double X, Y, Z; activeView()->Convert( x, y, X, Y, Z ); - activeView()->Rotate( 0, 0, degrees * Standard_PI180, X, Y, Z ); + activeView()->Rotate( 0, 0, degrees * M_PI / 180., X, Y, Z ); emit vpTransformed( this ); }