UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

23 lines (18 loc) 488 B
import { orient2d } from "robust-predicates"; /** * * @param {number[]} points * @param {number} a * @param {number} b * @param {number} c * @returns {number} */ export function orientation3_array(points, a, b, c) { const ax = points[a * 2]; const ay = points[a * 2 + 1]; const bx = points[b * 2]; const by = points[b * 2 + 1]; const cx = points[c * 2]; const cy = points[c * 2 + 1]; return orient2d(ax, ay, bx, by, cx, cy); }