warscript
Version:
A typescript library for Warcraft III using Warpack.
40 lines (39 loc) • 1.82 kB
TypeScript
/// <reference types="lua-types/5.3" />
/// <reference types="lua-types/5.3" />
/** @noSelfInFile */
export declare const MINIMUM_POSITIVE_NORMALIZED_FLOAT: number;
export declare const MINIMUM_POSITIVE_FLOAT: number;
export declare const MAXIMUM_INTEGER = 2147483647;
export declare const MINIMUM_INTEGER = -2147483648;
export declare const POSITIVE_INFINITY: number;
export declare const NEGATIVE_INFINITY: number;
export declare const E: number;
export declare const LN10: number;
export declare const LN2: number;
export declare const LOG2E: number;
export declare const LOG10E: number;
export declare const PI: number;
export declare const SQRT1_2: number;
export declare const SQRT2: number;
export declare const ceil: typeof math.ceil;
/** Clamps the value to fit between min and max. */
export declare const clamp: (value: number, min: number, max: number) => number;
export declare const abs: typeof math.abs;
export declare const cos: typeof math.cos;
export declare const exp: typeof math.exp;
export declare const floor: typeof math.floor;
export declare const log: typeof math.log;
export declare const max: typeof math.max;
export declare const min: typeof math.min;
/** Returns the signum function of the argument;
* zero if the argument is zero,
* 1.0 if the argument is greater than zero,
* -1.0 if the argument is less than zero. */
export declare const signum: (value: number) => number;
/** Returns the trigonometric sine of an angle (assumed to be in radians). */
export declare const sin: typeof math.sin;
/** Returns the positive square root of a value. */
export declare const sqrt: typeof math.sqrt;
export declare const nextUp: (value: number) => number;
export declare const nextDown: (value: number) => number;
export declare const nextAfter: (start: number, direction: number) => number;