Lines Matching refs:Math
10 Math.imul = Math.imul || function(a, b) {
74 _a = Math.PI / 180 * s,
75 _r = Math.cos(_a),
76 _h = Math.sin(_a);
91 return Math.sqrt(Math.pow(e[0] - s[0], 2) + Math.pow(e[1] - s[1], 2));
126 …return e[0] <= Math.max(t[0], s[0]) && e[0] >= Math.min(t[0], s[0]) && e[1] <= Math.max(t[1], s[1]…
144 o = Math.round(s.hachureAngle + 90);
156 t < 0 && (t = 4 * e.strokeWidth), t = Math.max(t, .1);
164 var _t3 = Math.min(_e4[1], _n2[1]);
168 ymax: Math.max(_e4[1], _n2[1]),
176 … < e.x ? -1 : t.x > e.x ? 1 : t.ymax === e.ymax ? 0 : (t.ymax - e.ymax) / Math.abs(t.ymax - e.ymax…
202 … return t.edge.x === e.edge.x ? 0 : (t.edge.x - e.edge.x) / Math.abs(t.edge.x - e.edge.x);
209 n.push([[Math.round(_s3.x), r], [Math.round(_o2.x), r]]);
306 var a = Math.max(5, .1 * e(o)),
425 o < 0 && (o = 4 * s.strokeWidth), o = Math.max(o, .1);
439 _c2 = Math.ceil(_i5) - 1,
442 _p = Math.min(_h2[0][1], _h2[1][1]);
495 h = Math.floor(r / (n + o)),
500 var u = Math.atan((l[1] - c[1]) / (l[0] - c[0]));
505 … _h4 = [c[0] + _e12 * Math.cos(u) + i * Math.cos(u), c[1] + _e12 * Math.sin(u) + i * Math.sin(u)],
506 … _l3 = [c[0] + _r3 * Math.cos(u) + i * Math.cos(u), c[1] + _r3 * Math.sin(u) + i * Math.sin(u)];
545 r = Math.round(a / (2 * s));
549 var c = Math.atan((i[1] - h[1]) / (i[0] - h[0]));
554 _r4 = Math.sqrt(2 * Math.pow(s, 2)),
555 _i7 = [h[0] + _e13 * Math.cos(c), h[1] + _e13 * Math.sin(c)],
556 _l4 = [h[0] + _a4 * Math.cos(c), h[1] + _a4 * Math.sin(c)],
557 … _u2 = [_i7[0] + _r4 * Math.cos(c + Math.PI / 4), _i7[1] + _r4 * Math.sin(c + Math.PI / 4)];
580 …return this.seed ? (Math.pow(2, 31) - 1 & (this.seed = Math.imul(48271, this.seed))) / Math.pow(2,…
963 var _t19 = Math.abs(_l5[0]),
964 _s7 = Math.abs(_l5[1]),
1004 return [t * Math.cos(s) - e * Math.sin(s), t * Math.sin(s) + e * Math.cos(s)];
1008 var l = (u = r, Math.PI * u / 180);
1033 _u5 > 1 && (_u5 = Math.sqrt(_u5), o *= _u5, a *= _u5);
1039 _m = (h === i ? -1 : 1) * Math.sqrt(Math.abs(_b / _y));
1041 …Math.asin(parseFloat(((e - M) / a).toFixed(9))), d = Math.asin(parseFloat(((n - M) / a).toFixed(9)…
1046 if (Math.abs(k) > 120 * Math.PI / 180) {
1050 …d = i && d > f ? f + 120 * Math.PI / 180 * 1 : f + 120 * Math.PI / 180 * -1, p = P(s = g + o * Mat…
1054 var b = Math.cos(f),
1055 y = Math.sin(f),
1056 m = Math.cos(d),
1057 x = Math.sin(d),
1058 v = Math.tan(k / 4),
1153 var n = Math.sqrt(2 * Math.PI * Math.sqrt((Math.pow(t / 2, 2) + Math.pow(e / 2, 2)) / 2)),
1154 o = Math.max(s.curveStepCount, s.curveStepCount / Math.sqrt(200) * n),
1155 a = 2 * Math.PI / o;
1156 var r = Math.abs(t / 2),
1157 h = Math.abs(e / 2);
1195 var u = Math.abs(s / 2),
1196 p = Math.abs(n / 2);
1202 f += 2 * Math.PI, d += 2 * Math.PI;
1205 d - f > 2 * Math.PI && (f = 0, d = 2 * Math.PI);
1206 var g = 2 * Math.PI / i.curveStepCount,
1207 M = Math.min(g / 2, (d - f) / 2),
1216 …leArray(z(c, l, c + u * Math.cos(f), l + p * Math.sin(f), i)).concat(_toConsumableArray(z(c, l, c …
1221 data: [c + u * Math.cos(f), l + p * Math.sin(f)]
1312 var h = Math.pow(t - s, 2) + Math.pow(e - n, 2),
1313 i = Math.sqrt(h);
1401 l = W(.5, h) - Math.PI / 2;
1402 c.push([W(a, h) + e + .9 * n * Math.cos(l - t), W(a, h) + s + .9 * o * Math.sin(l - t)]);
1404 for (var _r12 = l; _r12 < 2 * Math.PI + l - .01; _r12 += t) {
1405 var _t24 = [W(a, h) + e + n * Math.cos(_r12), W(a, h) + s + o * Math.sin(_r12)];
1409 …Math.cos(l + 2 * Math.PI + .5 * r), W(a, h) + s + o * Math.sin(l + 2 * Math.PI + .5 * r)]), c.push…
1415 l.push([W(h, i) + e + .9 * n * Math.cos(c - t), W(h, i) + s + .9 * o * Math.sin(c - t)]);
1418 l.push([W(h, i) + e + n * Math.cos(_a12), W(h, i) + s + o * Math.sin(_a12)]);
1421 …return l.push([e + n * Math.cos(r), s + o * Math.sin(r)]), l.push([e + n * Math.cos(r), s + o * Ma…
1452 return Math.pow(t[0] - e[0], 2) + Math.pow(t[1] - e[1], 2);
1459 return o = Math.max(0, Math.min(1, o)), N(t, Q(e, s, o));
1486 (a = o[o.length - 1], r = _s10, Math.sqrt(N(a, r))) > 1 && o.push(_s10);
1527 …return Math.sqrt(i) > n ? (X(t, e, c + 1, n, a), X(t, c, s, n, a)) : (a.length || a.push(r), a.pus…
1652 var c = Math.abs(s / 2),
1653 l = Math.abs(n / 2);
1659 u += 2 * Math.PI, p += 2 * Math.PI;
1662 p - u > 2 * Math.PI && (u = 0, p = 2 * Math.PI);
1667 d.push([h + c * Math.cos(_t25), i + l * Math.sin(_t25)]);
1670 return d.push([h + c * Math.cos(p), i + l * Math.sin(p)]), d.push([h, i]), _(d, r);
1979 return Math.floor(Math.random() * Math.pow(2, 31));