//#region src/mathUtils.d.ts declare function clampMax(value: number, max: number): number; declare function clampMin(value: number, min: number): number; declare function clampRange(num: number, v1: number, v2: number): number; declare function clamp(num: number, min: number, max: number): number; declare function fixFloatingPointNumber(value: number): number; /** * Rounds a number to the nearest multiple of the specified step value. * * @param value - The number to round * @param step - The step size to round to * @param offset - Optional offset to shift the rounding grid * @returns The rounded value * * @example * roundToStep(23, 5) // 25 (nearest multiple of 5) */ declare function roundToStep(value: number, step: number, offset?: number): number; /** * Floors a number down to the nearest multiple of the specified step value. * * @param value - The number to floor * @param step - The step size to floor to * @param offset - Optional offset to shift the flooring grid * @returns The floored value * * @example * floorToStep(23, 5) // 20 (largest multiple of 5 ≤ 23) */ declare function floorToStep(value: number, step: number, offset?: number): number; /** * Ceils a number up to the nearest multiple of the specified step value. * * @param value - The number to ceil * @param step - The step size to ceil to * @param offset - Optional offset to shift the ceiling grid * @returns The ceiled value * * @example * ceilToStep(23, 5) // 25 (smallest multiple of 5 ≥ 23) */ declare function ceilToStep(value: number, step: number, offset?: number): number; /** * Rounds a number to the specified number of decimal places. * * @param num - The number to round * @param precision - Number of decimal places * @returns The rounded number * * @example * round(3.14159, 2) // 3.14 */ declare function round(num: number, precision: number): number; //#endregion export { ceilToStep, clamp, clampMax, clampMin, clampRange, fixFloatingPointNumber, floorToStep, round, roundToStep };