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 { clamp01 as op } from "@thi.ng/math/interval"; import { defOpV } from "./defopv.js"; const [a, b, c, d] = defOpV(op); const clamp01 = a; const clamp01_2 = b; const clamp01_3 = c; const clamp01_4 = d; export { clamp01, clamp01_2, clamp01_3, clamp01_4 };