mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 13:03:36 +00:00
16 lines
226 B
JavaScript
16 lines
226 B
JavaScript
|
var Offset = function (triangle, x, y)
|
||
|
{
|
||
|
triangle.x1 += x;
|
||
|
triangle.y1 += y;
|
||
|
|
||
|
triangle.x2 += x;
|
||
|
triangle.y2 += y;
|
||
|
|
||
|
triangle.x3 += x;
|
||
|
triangle.y3 += y;
|
||
|
|
||
|
return triangle;
|
||
|
};
|
||
|
|
||
|
module.exports = Offset;
|