@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
42 lines • 1.62 kB
TypeScript
/**
* Multi-method. Similar to {@link mod}, {@link remainder}. This version of
* modulo uses the same logic as the standard C function `fmod` and/or the JS
* `%` operator, yielding results with the same sign as `a`, i.e. computes
* `a-b*trunc(a/b)`.
*
* @param o - output vector
* @param a - input vector
* @param b - input vector
*/
export declare const fmod: import("./api.js").MultiVecOpVV<number>;
/**
* Similar to {@link mod2}, {@link remainder2}. This version of modulo uses the
* same logic as the standard C function `fmod` and/or the JS `%` operator,
* yielding results with the same sign as `a`, i.e. computes `a-b*trunc(a/b)`.
*
* @param o - output vector
* @param a - input vector
* @param b - input vector
*/
export declare const fmod2: import("./api.js").VecOpVV<number>;
/**
* Similar to {@link mod3}, {@link remainder3}. This version of modulo uses the
* same logic as the standard C function `fmod` and/or the JS `%` operator,
* yielding results with the same sign as `a`, i.e. computes `a-b*trunc(a/b)`.
*
* @param o - output vector
* @param a - input vector
* @param b - input vector
*/
export declare const fmod3: import("./api.js").VecOpVV<number>;
/**
* Similar to {@link mod4}, {@link remainder4}. This version of modulo uses the
* same logic as the standard C function `fmod` and/or the JS `%` operator,
* yielding results with the same sign as `a`, i.e. computes `a-b*trunc(a/b)`.
*
* @param o - output vector
* @param a - input vector
* @param b - input vector
*/
export declare const fmod4: import("./api.js").VecOpVV<number>;
//# sourceMappingURL=fmod.d.ts.map