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

10 lines
141 B
JavaScript
Raw Normal View History

2016-12-29 00:17:20 +00:00
var OffsetPoint = function (rect, point)
{
rect.x += point.x;
rect.y += point.y;
return rect;
};
module.exports = OffsetPoint;