MCPcopy Create free account
hub / github.com/alignoth/alignoth / renderTriangle

Method renderTriangle

resources/vega.min.js:25803–25816  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

25801 return (this.renderHull(t), t.value());
25802 }
25803 renderTriangle(t, e) {
25804 const n = null == e ? (e = new JF()) : void 0,
25805 { points: r, triangles: i } = this,
25806 o = 2 * i[(t *= 3)],
25807 a = 2 * i[t + 1],
25808 s = 2 * i[t + 2];
25809 return (
25810 e.moveTo(r[o], r[o + 1]),
25811 e.lineTo(r[a], r[a + 1]),
25812 e.lineTo(r[s], r[s + 1]),
25813 e.closePath(),
25814 n && n.value()
25815 );
25816 }
25817 *trianglePolygons() {
25818 const { triangles: t } = this;
25819 for (let e = 0, n = t.length / 3; e < n; ++e)

Callers 1

trianglePolygonMethod · 0.95

Calls 4

moveToMethod · 0.45
lineToMethod · 0.45
closePathMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected