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

Function areaTriangle

libraries/p5.js:29765–29767  ·  view source on GitHub ↗
(a, b, c)

Source from the content-addressed store, hash-verified

29763}
29764
29765function areaTriangle(a, b, c) {
29766 return (((b[0] - a[0]) * (c[1] - a[1])) - ((c[0] - a[0]) * (b[1] - a[1])));
29767}
29768
29769// Portions of below code copyright 2008 Dmitry Baranovskiy (via MIT license)
29770

Callers 1

collinearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected