mirror of
https://github.com/photonstorm/phaser
synced 2024-12-26 21:13:41 +00:00
12 lines
259 B
JavaScript
12 lines
259 B
JavaScript
|
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;
|