Skip to content

Commit 32a8927

Browse files
committed
Docs: Math
RotateAround, RotateAroundDistance
1 parent c0e5f20 commit 32a8927

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/math/RotateAround.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
*/
66

77
/**
8-
* Rotate a `point` around `x` and `y` by the given `angle`.
8+
* Rotate a `point` around `x` and `y` to the given `angle`, at the same distance.
9+
*
10+
* In polar notation, this maps a point from (r, t) to (r, angle), vs. the origin (x, y).
911
*
1012
* @function Phaser.Math.RotateAround
1113
* @since 3.0.0

src/math/RotateAroundDistance.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
/**
88
* Rotate a `point` around `x` and `y` by the given `angle` and `distance`.
99
*
10+
* In polar notation, this maps a point from (r, t) to (distance, t + angle), vs. the origin (x, y).
11+
*
1012
* @function Phaser.Math.RotateAroundDistance
1113
* @since 3.0.0
1214
*

0 commit comments

Comments
 (0)