arcade-physics
Version:
Use Arcade Physics without Phaser.
38 lines • 1.6 kB
JavaScript
;
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
Object.defineProperty(exports, "__esModule", { value: true });
/** Math const */
var MATH_CONST;
(function (MATH_CONST) {
/** The value of PI * 2 */
MATH_CONST[MATH_CONST["PI2"] = Math.PI * 2] = "PI2";
/** The value of PI * 0.5 */
MATH_CONST[MATH_CONST["TAU"] = Math.PI * 0.5] = "TAU";
/** An epsilon value (1.0e-6) */
MATH_CONST[MATH_CONST["EPSILON"] = 0.000001] = "EPSILON";
/** For converting degrees to radians (PI / 180) */
MATH_CONST[MATH_CONST["DEG_TO_RAD"] = Math.PI / 180] = "DEG_TO_RAD";
/** For converting radians to degrees (180 / PI) */
MATH_CONST[MATH_CONST["RAD_TO_DEG"] = 180 / Math.PI] = "RAD_TO_DEG";
/**
* An instance of the Random Number Generator.
* This is not set until the Game boots.
*/
// RND = null,
/**
* The minimum safe integer this browser supports.
* We use a const for backward compatibility with Internet Explorer.
*/
MATH_CONST[MATH_CONST["MIN_SAFE_INTEGER"] = Number.MIN_SAFE_INTEGER || -9007199254740991] = "MIN_SAFE_INTEGER";
/**
* The maximum safe integer this browser supports.
* We use a const for backward compatibility with Internet Explorer.
*/
MATH_CONST[MATH_CONST["MAX_SAFE_INTEGER"] = Number.MAX_SAFE_INTEGER || 9007199254740991] = "MAX_SAFE_INTEGER";
})(MATH_CONST || (MATH_CONST = {}));
exports.default = MATH_CONST;
//# sourceMappingURL=const.js.map