UNPKG

@thi.ng/vectors

Version:

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

13 lines (12 loc) 241 B
import { defOp } from "./compile/emit.js"; import { ARGS_V } from "./compile/templates.js"; const [exp_2, exp_22, exp_23, exp_24] = defOp( ([o, a]) => `${o}=Math.pow(2,${a});`, ARGS_V ); export { exp_2, exp_22, exp_23, exp_24 };