phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
29 lines (25 loc) • 782 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var RotateAroundXY = require('./RotateAroundXY');
/**
* [description]
*
* @function Phaser.Geom.Line.RotateAroundPoint
* @since 3.0.0
*
* @generic {Phaser.Geom.Line} O - [line,$return]
*
* @param {Phaser.Geom.Line} line - [description]
* @param {(Phaser.Geom.Point|object)} point - [description]
* @param {number} angle - [description]
*
* @return {Phaser.Geom.Line} [description]
*/
var RotateAroundPoint = function (line, point, angle)
{
return RotateAroundXY(line, point.x, point.y, angle);
};
module.exports = RotateAroundPoint;