UNPKG

@realsee/dnalogel

Version:
10 lines (9 loc) 321 B
import { getNormal as m } from "../../shared-utils/three/getNormal.js"; import { centerPoint as a } from "../../shared-utils/three/centerPoint.js"; function f(r, t) { const e = m(r), n = a(...r), o = t.clone().sub(n); return e.dot(o) >= 0 ? r : r.slice().reverse(); } export { f as sortPositionsByCameraPosition };