UNPKG

@thi.ng/vectors

Version:

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

13 lines (12 loc) 237 B
import { defOpVNew } from "./defopv-new.js"; const [a, b, c, d] = defOpVNew((x) => ~~x, 1); const fromBVec = a; const fromBVec2 = b; const fromBVec3 = c; const fromBVec4 = d; export { fromBVec, fromBVec2, fromBVec3, fromBVec4 };