UNPKG

@thi.ng/vectors

Version:

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

9 lines (8 loc) 195 B
import { defOp } from "./compile/emit.js"; const [invSqrt, invSqrt2, invSqrt3, invSqrt4] = defOp(([o, a]) => `${o}=1/Math.sqrt(${a});`); export { invSqrt, invSqrt2, invSqrt3, invSqrt4 };