@phaserjs/phaser
Version:
15 lines (14 loc) • 457 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
export const MATH_CONST = {
PI2: Math.PI * 2,
HALF_PI: Math.PI * 0.5,
EPSILON: 1e-6,
DEG_TO_RAD: Math.PI / 180,
RAD_TO_DEG: 180 / Math.PI,
MIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER || -9007199254740991,
MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER || 9007199254740991
};