UNPKG

@thi.ng/vectors

Version:

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

11 lines (10 loc) 180 B
import { defOp } from "./compile/emit.js"; const [invert, invert2, invert3, invert4] = defOp( ([o, a]) => `${o}=1/${a};` ); export { invert, invert2, invert3, invert4 };