mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 13:18:49 +00:00
15 lines
311 B
JavaScript
15 lines
311 B
JavaScript
|
// 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;
|