Lines Matching refs:math

862     math = Math,
863 mmax = math.max,
864 mmin = math.min,
865 abs = math.abs,
866 pow = math.pow,
867 PI = math.PI,
868 round = math.round,
1060 return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;
1105 return math.sin(Snap.rad(angle));
1116 return math.tan(Snap.rad(angle));
1127 return math.cos(Snap.rad(angle));
1138 return Snap.deg(math.asin(num));
1149 return Snap.deg(math.acos(num));
1160 return Snap.deg(math.atan(num));
1171 return Snap.deg(math.atan2(num));
1422 red = mmin(math.round(red), 255);
1423 green = mmin(math.round(green), 255);
1424 blue = mmin(math.round(blue), 255);
1471 var round = math.round;
1522 r = math.round(r * 255);
1523 g = math.round(g * 255);
1524 b = math.round(b * 255);
1841 res.push(["m", 1, 0, math.tan(rad(params[0])), 1, 0, 0]);
1843 res.push(["m", 1, math.tan(rad(params[0])), 0, 1, 0, 0]);
3644 math = Math,
3778 var cos = +math.cos(a).toFixed(9),
3779 sin = +math.sin(a).toFixed(9);
3820 var mag = math.sqrt(norm(a));
3856 out.scalex = math.sqrt(norm(row[0]));
3862 out.scaley = math.sqrt(norm(row[1]));
3874 out.rotate = Snap.deg(math.acos(cos));
3879 out.rotate = Snap.deg(math.asin(sin));
5123 return Snap._.box(x1, y1, math.abs(x2 - x1), math.abs(y2 - y1));
5327 math = Math,
5328 PI = math.PI,
5329 mmin = math.min,
5330 mmax = math.max,
5331 pow = math.pow,
5332 abs = math.abs;
5371 r1: math.min(width, height) / 2,
5372 r2: math.max(width, height) / 2,
5373 r0: math.sqrt(width * width + height * height) / 2,
5474 alpha = (90 - math.atan2(mx - nx, my - ny) * 180 / PI);
5540 sum += Cvalues[i] * math.sqrt(comb);
6066 var X = x * math.cos(rad) - y * math.sin(rad),
6067 Y = x * math.sin(rad) + y * math.cos(rad);
6077 var cos = math.cos(PI / 180 * angle),
6078 sin = math.sin(PI / 180 * angle),
6083 h = math.sqrt(h);
6090math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),
6093 f1 = math.asin(((y1 - cy) / ry).toFixed(9)),
6094 f2 = math.asin(((y2 - cy) / ry).toFixed(9));
6118 x2 = cx + rx * math.cos(f2);
6119 y2 = cy + ry * math.sin(f2);
6123 var c1 = math.cos(f1),
6124 s1 = math.sin(f1),
6125 c2 = math.cos(f2),
6126 s2 = math.sin(f2),
6127 t = math.tan(df / 4),
6184 sqrtb2ac = math.sqrt(b2ac);