UNPKG

@thi.ng/vectors

Version:

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

13 lines (12 loc) 221 B
import { defOpVNew } from "./defopv-new.js"; const [a, b, c, d] = defOpVNew((x) => !!x, 1); const asBVec = a; const asBVec2 = b; const asBVec3 = c; const asBVec4 = d; export { asBVec, asBVec2, asBVec3, asBVec4 };