UNPKG

@thi.ng/vectors

Version:

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

17 lines 836 B
import type { MultiVecOpVV, VecOpVV } from "./api.js"; /** * Similar to {@link fmod}, {@link remainder}. This version of modulo uses the * same logic as in GLSL, yielding different results for negative values, i.e. * computes `a - b * floor(a/b)` * * @remarks * **Caution:** Due to the introduction of libc math functions in thi.ng/math * v4.0.0 and the resulting name/behavior clashes between the modulo logic in * JS, C & GLSL, this function previously _was_ called `fmod`, but going forward * has been renamed/swapped to align w/ its GLSL version and now exhibits a * different behavior than the current {@link fmod} function. * * https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/mod.xhtml */ export declare const mod: MultiVecOpVV, mod2: VecOpVV, mod3: VecOpVV, mod4: VecOpVV; //# sourceMappingURL=mod.d.ts.map