Lines Matching refs:M_PI
39 #ifndef M_PI
40 #define M_PI 3.14159265358979323846264338327950288
352 double ca = cos (angle*M_PI/180.0);
353 double sa = sin (angle*M_PI/180.0);
584 angle1 = atan2(p1->y-center->y,p1->x-center->x)*180.0/M_PI;
585 angle2 = atan2(p2->y-center->y,p2->x-center->x)*180.0/M_PI;
591 // This is necessary, because atan2 breaks at M_PI.
596 // This is necessary, because atan2 breaks at M_PI.
621 seg_alpha_2 = 0.5*M_PI/180.0*sweep/nseg;
640 a=M_PI/180.0 * i*sweep/nseg;
1322 p.x+=cos(start*M_PI/180.0)*r;
1323 p.y+=sin(start*M_PI/180.0)*r;
1370 p.x+=cos(start*M_PI/180.0)*r;
1371 p.y+=sin(start*M_PI/180.0)*r;