Fixed Vector2Like types

This commit is contained in:
Richard Davey 2020-04-27 16:13:17 +01:00
parent bded374ad1
commit 4d190470f3
3 changed files with 5 additions and 5 deletions

View file

@ -97,7 +97,7 @@ var Rope = new Class({
* Should you need to change the _size_ of this array, then you should always use the `setPoints` method. * Should you need to change the _size_ of this array, then you should always use the `setPoints` method.
* *
* @name Phaser.GameObjects.Rope#points * @name Phaser.GameObjects.Rope#points
* @type {Phaser.Math.Types.Vector2Like[]} * @type {Phaser.Types.Math.Vector2Like[]}
* @since 3.23.0 * @since 3.23.0
*/ */
this.points = points; this.points = points;

View file

@ -12,14 +12,14 @@
* @function Phaser.Math.RotateAround * @function Phaser.Math.RotateAround
* @since 3.0.0 * @since 3.0.0
* *
* @generic {Phaser.Math.Vector2Like} T - [point,$return] * @generic {Phaser.Types.Math.Vector2Like} T - [point,$return]
* *
* @param {(Phaser.Geom.Point|object)} point - The point to be rotated. * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.
* @param {number} x - The horizontal coordinate to rotate around. * @param {number} x - The horizontal coordinate to rotate around.
* @param {number} y - The vertical coordinate to rotate around. * @param {number} y - The vertical coordinate to rotate around.
* @param {number} angle - The angle of rotation in radians. * @param {number} angle - The angle of rotation in radians.
* *
* @return {Phaser.Math.Vector2Like} The given point. * @return {Phaser.Types.Math.Vector2Like} The given point.
*/ */
var RotateAround = function (point, x, y, angle) var RotateAround = function (point, x, y, angle)
{ {

View file

@ -12,7 +12,7 @@
* @function Phaser.Math.RotateAroundDistance * @function Phaser.Math.RotateAroundDistance
* @since 3.0.0 * @since 3.0.0
* *
* @generic {Phaser.Math.Vector2Like} T - [point,$return] * @generic {Phaser.Types.Math.Vector2Like} T - [point,$return]
* *
* @param {(Phaser.Geom.Point|object)} point - The point to be rotated. * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.
* @param {number} x - The horizontal coordinate to rotate around. * @param {number} x - The horizontal coordinate to rotate around.
@ -20,7 +20,7 @@
* @param {number} angle - The angle of rotation in radians. * @param {number} angle - The angle of rotation in radians.
* @param {number} distance - The distance from (x, y) to place the point at. * @param {number} distance - The distance from (x, y) to place the point at.
* *
* @return {Phaser.Math.Vector2Like} The given point. * @return {Phaser.Types.Math.Vector2Like} The given point.
*/ */
var RotateAroundDistance = function (point, x, y, angle, distance) var RotateAroundDistance = function (point, x, y, angle, distance)
{ {