UNPKG

@thi.ng/vectors

Version:

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

41 lines 1.51 kB
/** * Componentwise computes modulo of given nD vector. Uses the same logic as the * standard C function `remainder()`, i.e. componentwise `a - b * round(a / b)`. * Also see {@link mod}, {@link fmod}. Multi-method. * * @param o - output vector * @param a - input vector * @param b - input vector */ export declare const remainder: import("./api.js").MultiVecOpVV<number>; /** * Componentwise computes modulo of given 2D vector. Uses the same logic as the * standard C function `remainder()`, i.e. componentwise `a - b * round(a / b)`. * Also see {@link mod2}, {@link fmod2}. * * @param o - output vector * @param a - input vector * @param b - input vector */ export declare const remainder2: import("./api.js").VecOpVV<number>; /** * Componentwise computes modulo of given 3D vector. Uses the same logic as the * standard C function `remainder()`, i.e. componentwise `a - b * round(a / b)`. * Also see {@link mod3}, {@link fmod3}. * * @param o - output vector * @param a - input vector * @param b - input vector */ export declare const remainder3: import("./api.js").VecOpVV<number>; /** * Componentwise computes modulo of given 4D vector. Uses the same logic as the * standard C function `remainder()`, i.e. componentwise `a - b * round(a / b)`. * Also see {@link mod4}, {@link fmod4}. * * @param o - output vector * @param a - input vector * @param b - input vector */ export declare const remainder4: import("./api.js").VecOpVV<number>; //# sourceMappingURL=remainder.d.ts.map