Update JSDoc on Math

This commit is contained in:
orblazer 2018-03-19 13:06:46 +01:00
parent 0e06dcf3a1
commit 679253f591
3 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl
var Class = require('../utils/Class');
@ -70,7 +70,7 @@ var Matrix4 = new Class({
* @method Phaser.Math.Matrix4#set
* @since 3.0.0
*
* @param {[type]} src - [description]
* @param {Phaser.Math.Matrix4} src - [description]
*
* @return {Phaser.Math.Matrix4} This Matrix4 object.
*/
@ -713,7 +713,7 @@ var Matrix4 = new Class({
{
return null;
}
len = 1 / len;
x *= len;
y *= len;

View file

@ -4,7 +4,7 @@
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji
// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl
var Class = require('../utils/Class');
@ -105,8 +105,8 @@ var Vector3 = new Class({
* @method Phaser.Math.Vector3#crossVectors
* @since 3.0.0
*
* @param {[type]} a - [description]
* @param {[type]} b - [description]
* @param {Phaser.Math.Vector3} a - [description]
* @param {Phaser.Math.Vector3} b - [description]
*
* @return {Phaser.Math.Vector3} This Vector3 object.
*/
@ -659,7 +659,7 @@ var Vector3 = new Class({
var viewY = viewport.y;
var viewWidth = viewport.z;
var viewHeight = viewport.w;
var x = this.x - viewX;
var y = (viewHeight - this.y - 1) - viewY;
var z = this.z;

View file

@ -121,7 +121,7 @@ var RandomDataGenerator = new Class({
* @since 3.0.0
* @private
*
* @param {[type]} data - [description]
* @param {string} data - [description]
*
* @return {number} The hashed value.
*/