MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / q2c

Function q2c

libraries/p5.js:30195–30201  ·  view source on GitHub ↗
(x1, y1, ax, ay, x2, y2)

Source from the content-addressed store, hash-verified

30193function l2c(x1, y1, x2, y2) { return [x1, y1, x2, y2, x2, y2]; }
30194
30195function q2c(x1, y1, ax, ay, x2, y2) {
30196 var _13 = 1 / 3, _23 = 2 / 3;
30197 return [
30198 _13 * x1 + _23 * ax, _13 * y1 + _23 * ay,
30199 _13 * x2 + _23 * ax, _13 * y2 + _23 * ay, x2, y2
30200 ];
30201}
30202
30203function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {
30204 if (z == null) { z = 1; }

Callers 1

processPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected