@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
20 lines (19 loc) • 343 B
JavaScript
import { defFnOp, defOp } from "./compile/emit.js";
import { ARGS_VV, FN2 } from "./compile/templates.js";
const [atan, atan2, atan3, atan4] = defFnOp(
"Math.atan"
);
const [atan_2, atan_22, atan_23, atan_24] = defOp(
FN2("Math.atan2"),
ARGS_VV
);
export {
atan,
atan2,
atan3,
atan4,
atan_2,
atan_22,
atan_23,
atan_24
};