Searched defs:PI (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libtk/generic/
H A DtkTrig.c25 #ifndef PI
26 # define PI 3.14159265358979323846 macro
27 #endif /* PI */
1339 static float elevenDegrees = (11.0*2.0*PI)/360.0;
1342 theta1 = (p2[0] < p1[0]) ? 0 : PI;
1344 theta1 = (p2[1] < p1[1]) ? PI/2.0 : -PI/2.0;
1349 theta2 = (p3[0] > p2[0]) ? 0 : PI;
1351 theta2 = (p3[1] > p2[1]) ? PI/2.0 : -PI/2.
[all...]
H A DtkCanvArc.c165 #ifndef PI
166 # define PI 3.14159265358979323846 macro
784 pointAngle = -atan2(t1, t2)*180/PI;
973 angle = -arcPtr->start*(PI/180.0);
976 angle += -arcPtr->extent*(PI/180.0);
1272 angle = -arcPtr->start*PI/180.0;
1275 angle -= arcPtr->extent*PI/180.0;
1573 diff = diff*(180.0/PI) - start;

Completed in 2700 milliseconds