UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

14 lines (13 loc) 251 B
import { clamp as op } from "@thi.ng/math/interval"; import { defOpVVV } from "./defopvvv.js"; const [a, b, c, d] = defOpVVV(op); const clamp = a; const clamp2 = b; const clamp3 = c; const clamp4 = d; export { clamp, clamp2, clamp3, clamp4 };