Skip to content

Commit 679253f

Browse files
committed
Update JSDoc on Math
1 parent 0e06dcf commit 679253f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/math/Matrix4.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

7-
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
7+
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
88
// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl
99

1010
var Class = require('../utils/Class');
@@ -70,7 +70,7 @@ var Matrix4 = new Class({
7070
* @method Phaser.Math.Matrix4#set
7171
* @since 3.0.0
7272
*
73-
* @param {[type]} src - [description]
73+
* @param {Phaser.Math.Matrix4} src - [description]
7474
*
7575
* @return {Phaser.Math.Matrix4} This Matrix4 object.
7676
*/
@@ -713,7 +713,7 @@ var Matrix4 = new Class({
713713
{
714714
return null;
715715
}
716-
716+
717717
len = 1 / len;
718718
x *= len;
719719
y *= len;

src/math/Vector3.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

7-
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
7+
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
88
// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl
99

1010
var Class = require('../utils/Class');
@@ -105,8 +105,8 @@ var Vector3 = new Class({
105105
* @method Phaser.Math.Vector3#crossVectors
106106
* @since 3.0.0
107107
*
108-
* @param {[type]} a - [description]
109-
* @param {[type]} b - [description]
108+
* @param {Phaser.Math.Vector3} a - [description]
109+
* @param {Phaser.Math.Vector3} b - [description]
110110
*
111111
* @return {Phaser.Math.Vector3} This Vector3 object.
112112
*/
@@ -659,7 +659,7 @@ var Vector3 = new Class({
659659
var viewY = viewport.y;
660660
var viewWidth = viewport.z;
661661
var viewHeight = viewport.w;
662-
662+
663663
var x = this.x - viewX;
664664
var y = (viewHeight - this.y - 1) - viewY;
665665
var z = this.z;

src/math/random-data-generator/RandomDataGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var RandomDataGenerator = new Class({
121121
* @since 3.0.0
122122
* @private
123123
*
124-
* @param {[type]} data - [description]
124+
* @param {string} data - [description]
125125
*
126126
* @return {number} The hashed value.
127127
*/

0 commit comments

Comments
 (0)