- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
/**
* Two Pi.
* @static
* @member {number}
* @memberof PIXI
*/
export const PI_2 = Math.PI * 2;
/**
* Conversion factor for converting radians to degrees.
* @static
* @member {number} RAD_TO_DEG
* @memberof PIXI
*/
export const RAD_TO_DEG = 180 / Math.PI;
/**
* Conversion factor for converting degrees to radians.
* @static
* @member {number}
* @memberof PIXI
*/
export const DEG_TO_RAD = Math.PI / 180;
/**
* Constants that identify shapes, mainly to prevent `instanceof` calls.
* @static
* @memberof PIXI
* @enum {number}
* @property {number} POLY Polygon
* @property {number} RECT Rectangle
* @property {number} CIRC Circle
* @property {number} ELIP Ellipse
* @property {number} RREC Rounded Rectangle
*/
export enum SHAPES
// eslint-disable-next-line @typescript-eslint/indent
{
POLY = 0,
RECT = 1,
CIRC = 2,
ELIP = 3,
RREC = 4,
}