UNPKG

@thi.ng/vectors

Version:

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

13 lines (12 loc) 225 B
import { defOpVNew } from "./defopv-new.js"; const [a, b, c, d] = defOpVNew((x) => x >>> 0, 1); const asUVec = a; const asUVec2 = b; const asUVec3 = c; const asUVec4 = d; export { asUVec, asUVec2, asUVec3, asUVec4 };