mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
minor docs fixes from last commit
This commit is contained in:
parent
a6302cdd9a
commit
ff75721507
1 changed files with 3 additions and 3 deletions
|
@ -27,10 +27,10 @@ Phaser.Math = {
|
||||||
* Returns a random float in the range `[min, max)`. If these parameters are not in order than they will be put in order.
|
* Returns a random float in the range `[min, max)`. If these parameters are not in order than they will be put in order.
|
||||||
* Default is 0 for `min` and 1 for `max`.
|
* Default is 0 for `min` and 1 for `max`.
|
||||||
*
|
*
|
||||||
* @method Phaser.Math#between
|
* @method Phaser.Math#random
|
||||||
* @param {number} min - The minimum value. Must be a Number.
|
* @param {number} min - The minimum value. Must be a Number.
|
||||||
* @param {number} max - The maximum value. Must be a Number.
|
* @param {number} max - The maximum value. Must be a Number.
|
||||||
* @return {number} A floating point number between the range min to max.
|
* @return {number} A floating point number between min (inclusive) and max (exclusive).
|
||||||
*/
|
*/
|
||||||
random: function (min, max) {
|
random: function (min, max) {
|
||||||
if (min === undefined) { min = 0; }
|
if (min === undefined) { min = 0; }
|
||||||
|
@ -52,7 +52,7 @@ Phaser.Math = {
|
||||||
* @method Phaser.Math#between
|
* @method Phaser.Math#between
|
||||||
* @param {number} min - The minimum value. Must be a Number.
|
* @param {number} min - The minimum value. Must be a Number.
|
||||||
* @param {number} max - The maximum value. Must be a Number.
|
* @param {number} max - The maximum value. Must be a Number.
|
||||||
* @return {number} A floating point number between the range min to max.
|
* @return {number} An integer between min (inclusive) and max (inclusive).
|
||||||
*/
|
*/
|
||||||
between: function (min, max) {
|
between: function (min, max) {
|
||||||
if (min === undefined) { min = 0; }
|
if (min === undefined) { min = 0; }
|
||||||
|
|
Loading…
Reference in a new issue