warscript
Version:
A typescript library for Warcraft III using Warpack.
19 lines (18 loc) • 793 B
TypeScript
/** @noSelfInFile */
export declare const EPSILON = 0.00001;
/**
* Convert Degrees to Radians
* @param {number} a Angle in Degrees
* @returns {number} Angle in Radians
*/
export declare function toRadians(a: number): number;
/**
* Tests whether or not the arguments have approximately the same value, within an absolute
* or relative tolerance (an absolute tolerance is used for values less than or equal to
* 1.0, and a relative tolerance is used for larger values)
* @param {number} a The first number to test
* @param {number} b The second number to test
* @param {number} tolerance The tolerance to test for
* @returns {boolean} True if the numbers are approximately equal, false otherwise
*/
export declare function equals(a: number, b: number, tolerance?: number): boolean;