/** * Constrain a value to within a given range, if not already within range. * * @param min The lower bound of the range (inclusive) * @param max The upper bound of the range (inclusive) * @param value The value to clamp * @returns The constrained value */ export declare function uncheckedClamp(min: number, max: number, value: number): number; /** * Constrain a value to within a given range, if not already within range. * * @param min The lower bound of the range (inclusive) * @param max The upper bound of the range (inclusive) * @param value The value to clamp * @returns The constrained value * @throws a {@link RangeError} when range is invalid */ export declare function clamp(min: number, max: number, value: number): number; /** * Interpolate a value over a given range. * * @param from The beginning of the range * @param to The end of the range * @param value A number in which [0, 1] correstpond to the range * @returns The interpolated value */ export declare function uncheckedLerp(from: number, to: number, value: number): number; /** * Interpolate a value over a given range. * * @param from The beginning of the range * @param to The end of the range * @param value A number between 0 and 1 (inclusive) representing a point in * the range * @returns The interpolated value * @throws a {@link RangeError} when the value is outside of [0, 1] */ export declare function lerp(from: number, to: number, value: number): number; /** * Returns the factorial of a number * * @param n a counting number * @returns n! * @throws a {@link RangeError} when n is not a counting number */ export declare function factorial(n: number): number; /** * Compute the number of trailing zeros in a number's 32-bit representation, * equivalent to its largest power-of-two divisor. * * @param n an integer * @returns the number of trailing zeros in `a`'s 32-bit representation. */ export declare function trailingZeros(n: number): number; /** * Find the Greatest Common Factor of two integers. * * @param a first number * @param b second number * @returns the greatest common factor of `a` and `b` * @throws a {@link RangeError} if non-integral arguments are provided. */ export declare function gcf(a: number, b: number): number; /** * Find the Least Common Multiple of two integers. * * @param a first number * @param b second number * @returns the least common multiple of `a` and `b` * @throws a {@link RangeError} if non-integral arguments are provided. */ export declare function lcm(a: number, b: number): number;