/** * `PI` times 2. */ export declare const TWO_PI: number; /** * Converts the degrees to radians. * @param degrees - The degrees to convert to radians. * @returns The degrees in radians. */ export declare const degreesToRadians: (degrees: number) => number; /** * Convertrs the radians to degrees. * @param radians - The radians to convert to degrees. * @returns The radians as degrees. */ export declare const radiansToDegrees: (radians: number) => number; /** * Calculates the sine for a given degree value. * @param value - The value in degrees to calculate the sine for. * @returns The sine for the given value. */ export declare const sinDegrees: (value: number) => number; /** * Calculates the cosine for a given degree value. * @param value - The value in degrees to calculate the cosine for. * @returns The cosine for the given value. */ export declare const cosDegrees: (value: number) => number; /** * Calculates the distance between two vectors. * @param x1 - The X component of the first vector. * @param y1 - The Y comoinent of the first vector. * @param x2 - The X component of the second vector. * @param y2 - The Y component of the second vector. * @returns The distance between the two vectors. */ export declare const distance: (x1: number, y1: number, x2: number, y2: number) => number; /** * Finds the integer square root of a positive number. * @param value - The value to calcuate the square root for. * @returns The square root for the given value. */ export declare const isqrt: (value: number) => number; /** * Checks whether a number is an integer. * @param value - The value to check. * @returns `true` when the value is an integer, `false` otherwise. */ export declare const isInteger: (value: number) => boolean; /** * Ensures a given value is within a given boundary. * @param input - The number to clamp. * @param floor - The lower bound. * @param ceil - The upper bound. * @returns The number clamped to the desired range. */ export declare const clamp: (input: number, floor: number, ceil: number) => number; /** * Rounds a given number to the next highest value. * @param input - The number to round. * @param fractionDigits - The amount of digits to retain in the fraction. * @returns The rounded number. */ export declare const ceilTo: (input: number, fractionDigits?: number) => number; /** * Rounds a given number to the next lowest value. * @param input - The number to round. * @param fractionDigits - The amount of digits to retain in the fraction. * @returns The rounded number. */ export declare const floorTo: (input: number, fractionDigits?: number) => number; /** * Rounds a given number to the next closest value. * @param input - The number to round. * @param fractionDigits - The amount of digits to retain in the fraction. * @returns The rounded number. */ export declare const roundTo: (input: number, fractionDigits?: number) => number; /** * Cuts off digits of a number. * @param input - The number to round. * @param fractionDigits - The amount of digits to retain in the fraction. * @returns The rounded number. */ export declare const truncTo: (input: number, fractionDigits?: number) => number;