mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
16 lines
286 B
JavaScript
16 lines
286 B
JavaScript
/**
|
|
* [description]
|
|
*
|
|
* @function Phaser.Geom.Point.RPerp
|
|
* @since 3.0.0
|
|
*
|
|
* @param {Phaser.Geom.Point} point - [description]
|
|
*
|
|
* @return {Phaser.Geom.Point} [description]
|
|
*/
|
|
var RPerp = function (point)
|
|
{
|
|
return point.setTo(point.y, -point.x);
|
|
};
|
|
|
|
module.exports = RPerp;
|