phaser/src/geom/const.js
2024-02-19 17:12:24 +00:00

74 lines
1.3 KiB
JavaScript

/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2024 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GEOM_CONST = {
/**
* A Circle Geometry object type.
*
* @name Phaser.Geom.CIRCLE
* @type {number}
* @since 3.19.0
*/
CIRCLE: 0,
/**
* An Ellipse Geometry object type.
*
* @name Phaser.Geom.ELLIPSE
* @type {number}
* @since 3.19.0
*/
ELLIPSE: 1,
/**
* A Line Geometry object type.
*
* @name Phaser.Geom.LINE
* @type {number}
* @since 3.19.0
*/
LINE: 2,
/**
* A Point Geometry object type.
*
* @name Phaser.Geom.POINT
* @type {number}
* @since 3.19.0
*/
POINT: 3,
/**
* A Polygon Geometry object type.
*
* @name Phaser.Geom.POLYGON
* @type {number}
* @since 3.19.0
*/
POLYGON: 4,
/**
* A Rectangle Geometry object type.
*
* @name Phaser.Geom.RECTANGLE
* @type {number}
* @since 3.19.0
*/
RECTANGLE: 5,
/**
* A Triangle Geometry object type.
*
* @name Phaser.Geom.TRIANGLE
* @type {number}
* @since 3.19.0
*/
TRIANGLE: 6
};
module.exports = GEOM_CONST;