UNPKG

@thi.ng/vectors

Version:

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

14 lines (13 loc) 269 B
import { clamp11 as op } from "@thi.ng/math/interval"; import { defOpV } from "./defopv.js"; const [a, b, c, d] = defOpV(op); const clamp11 = a; const clamp11_2 = b; const clamp11_3 = c; const clamp11_4 = d; export { clamp11, clamp11_2, clamp11_3, clamp11_4 };