2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
2020-01-15 12:07:09 +00:00
|
|
|
* @copyright 2020 Photon Storm Ltd.
|
2019-05-10 15:15:04 +00:00
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
2018-02-12 16:01:20 +00:00
|
|
|
*/
|
|
|
|
|
2019-07-18 09:36:11 +00:00
|
|
|
var CONST = require('./const');
|
|
|
|
var Extend = require('../utils/object/Extend');
|
|
|
|
|
2018-01-31 13:54:44 +00:00
|
|
|
/**
|
|
|
|
* @namespace Phaser.Geom
|
|
|
|
*/
|
2016-12-22 01:32:21 +00:00
|
|
|
|
2019-07-18 09:36:11 +00:00
|
|
|
var Geom = {
|
2020-09-15 17:05:47 +00:00
|
|
|
|
2017-01-02 00:53:18 +00:00
|
|
|
Circle: require('./circle'),
|
|
|
|
Ellipse: require('./ellipse'),
|
|
|
|
Intersects: require('./intersects'),
|
2017-01-05 00:20:11 +00:00
|
|
|
Line: require('./line'),
|
2020-10-05 15:52:44 +00:00
|
|
|
Mesh: require('./mesh'),
|
2017-01-03 22:21:47 +00:00
|
|
|
Point: require('./point'),
|
2017-01-07 01:06:57 +00:00
|
|
|
Polygon: require('./polygon'),
|
2017-03-29 23:14:47 +00:00
|
|
|
Rectangle: require('./rectangle'),
|
|
|
|
Triangle: require('./triangle')
|
2016-12-22 01:32:21 +00:00
|
|
|
|
|
|
|
};
|
2019-07-18 09:36:11 +00:00
|
|
|
|
|
|
|
// Merge in the consts
|
|
|
|
Geom = Extend(false, Geom, CONST);
|
|
|
|
|
|
|
|
module.exports = Geom;
|