UNPKG

@thi.ng/vectors

Version:

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

17 lines (16 loc) 256 B
import { defOp } from "./compile/emit.js"; import { ARGS_V, NEW_OUT } from "./compile/templates.js"; const [not, not2, not3, not4] = defOp( ([o, a]) => `${o}=!${a};`, ARGS_V, ARGS_V, "o", 1, NEW_OUT ); export { not, not2, not3, not4 };