phaser/v3/src/geom/triangle/Rotate.js

12 lines
259 B
JavaScript
Raw Normal View History

var RotateAroundXY = require('./RotateAroundXY');
var InCenter = require('./InCenter');
var Rotate = function (triangle, angle)
{
var point = InCenter(triangle);
return RotateAroundXY(triangle, point.x, point.y, angle);
};
module.exports = Rotate;