From 4d190470f3d4183293f4017f9274b1b61c61b4d0 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Mon, 27 Apr 2020 16:13:17 +0100 Subject: [PATCH] Fixed Vector2Like types --- src/gameobjects/rope/Rope.js | 2 +- src/math/RotateAround.js | 4 ++-- src/math/RotateAroundDistance.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gameobjects/rope/Rope.js b/src/gameobjects/rope/Rope.js index 5f1c809df..766c4bbdc 100644 --- a/src/gameobjects/rope/Rope.js +++ b/src/gameobjects/rope/Rope.js @@ -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. * * @name Phaser.GameObjects.Rope#points - * @type {Phaser.Math.Types.Vector2Like[]} + * @type {Phaser.Types.Math.Vector2Like[]} * @since 3.23.0 */ this.points = points; diff --git a/src/math/RotateAround.js b/src/math/RotateAround.js index cd5f10037..d4b01a579 100644 --- a/src/math/RotateAround.js +++ b/src/math/RotateAround.js @@ -12,14 +12,14 @@ * @function Phaser.Math.RotateAround * @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 {number} x - The horizontal coordinate to rotate around. * @param {number} y - The vertical coordinate to rotate around. * @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) { diff --git a/src/math/RotateAroundDistance.js b/src/math/RotateAroundDistance.js index 712c83cdd..b22bb3307 100644 --- a/src/math/RotateAroundDistance.js +++ b/src/math/RotateAroundDistance.js @@ -12,7 +12,7 @@ * @function Phaser.Math.RotateAroundDistance * @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 {number} x - The horizontal coordinate to rotate around. @@ -20,7 +20,7 @@ * @param {number} angle - The angle of rotation in radians. * @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) {