UNPKG

@thi.ng/vectors

Version:

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

13 lines (12 loc) 223 B
import { defOpVNew } from "./defopv-new.js"; const [a, b, c, d] = defOpVNew((x) => x | 0, 1); const asIVec = a; const asIVec2 = b; const asIVec3 = c; const asIVec4 = d; export { asIVec, asIVec2, asIVec3, asIVec4 };