From 5ccd15dc020c0a8afcbba9113324fa87d042122d Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 22 Dec 2011 12:45:26 +0000 Subject: [PATCH] Porting to OCCT development version: Standard_PI -> M_PI --- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } -- 2.39.2