phaser/v3/src/geom/rectangle/GetSize.js

15 lines
311 B
JavaScript
Raw Normal View History

2016-12-20 17:07:16 +00:00
// The size of the Rectangle object, expressed as a Point object
// with the values of the width and height properties.
var GetSize = function (rect, out)
{
if (out === undefined) { out = { x: 0, y: 0 }; }
out.x = rect.width;
out.y = rect.height;
return out;
};
module.exports = GetSize;