math.h/PI integration

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-12-13 20:04:51 +00:00
parent 19edb09cd9
commit e0d3147139
10 changed files with 9 additions and 57 deletions

View File

@@ -30,8 +30,6 @@
#include "wx/dc.h"
#include <math.h>
// bool wxDCBase::sm_cacheing = false;
// ============================================================================
@@ -319,7 +317,7 @@ void wxDCBase::DoDrawSpline( wxList *points )
if (node == NULL)
// empty list
return;
p = (wxPoint *)node->GetData();
x1 = p->x;
@@ -766,7 +764,7 @@ void wxDCBase::Rotate( wxList* points, double angle, wxPoint center )
{
if( angle != 0.0 )
{
double pi(3.1415926536);
double pi(M_PI);
double dSinA = -sin(angle*2.0*pi/360.0);
double dCosA = cos(angle*2.0*pi/360.0);
for ( wxNode* node = points->First(); node; node = node->Next() )
@@ -794,7 +792,7 @@ void wxDCBase::CalculateEllipticPoints( wxList* points,
wxCoord w, wxCoord h,
double sa, double ea )
{
double pi = 3.1415926535;
double pi = M_PI;
double sar = 0;
double ear = 0;
int xsa = 0;