phaser/src/geom/index.js

31 lines
678 B
JavaScript
Raw Normal View History

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
*/
2019-07-18 09:36:11 +00:00
var Geom = {
2017-01-02 00:53:18 +00:00
Circle: require('./circle'),
Ellipse: require('./ellipse'),
Intersects: require('./intersects'),
Line: require('./line'),
2017-01-03 22:21:47 +00:00
Point: require('./point'),
2017-01-07 01:06:57 +00:00
Polygon: require('./polygon'),
Rectangle: require('./rectangle'),
Triangle: require('./triangle')
};
2019-07-18 09:36:11 +00:00
// Merge in the consts
Geom = Extend(false, Geom, CONST);
module.exports = Geom;