Lines Matching refs:PI
540 PI = math.PI,
827 return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;
842 return deg % 360 * PI / 180;
854 return rad * 180 / PI % 360;
1612 alpha = (90 - math.atan2(mx - nx, my - ny) * 180 / PI);
2219 var _120 = PI * 120 / 180,
2220 rad = PI / 180 * (+angle || 0),
2235 var cos = math.cos(PI / 180 * angle),
2236 sin = math.sin(PI / 180 * angle),
2254 f1 = x1 < cx ? PI - f1 : f1;
2255 f2 = x2 < cx ? PI - f2 : f2;
2256 f1 < 0 && (f1 = PI * 2 + f1);
2257 f2 < 0 && (f2 = PI * 2 + f2);
2259 f1 = f1 - PI * 2;
2262 f2 = f2 - PI * 2;
4424 return pow(2, -10 * n) * math.sin((n - .075) * (2 * PI) / .3) + 1;