UNPKG

@thi.ng/vectors

Version:

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

11 lines (10 loc) 358 B
import { smoothStep as _step } from "@thi.ng/math/step"; import { defHofOp } from "./compile/emit.js"; import { DEFAULT_OUT, FN3 } from "./compile/templates.js"; const [smoothStep, smoothStep2, smoothStep3, smoothStep4] = defHofOp(_step, FN3(), "o,e1,e2,a", void 0, "o", 3, DEFAULT_OUT); export { smoothStep, smoothStep2, smoothStep3, smoothStep4 };