Skip to content

Commit f017db8

Browse files
committed
Phaser.Math.fuzzyCeil and Phaser.Math.fuzzyFloor should not return boolean values as stated in @return section of the comments
1 parent 92bac85 commit f017db8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/math/Math.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Phaser.Math = {
7070
*
7171
* @param {number} val
7272
* @param {number} [epsilon=(small value)]
73-
* @return {boolean} ceiling(val-epsilon)
73+
* @return {number} ceiling(val-epsilon)
7474
*/
7575
fuzzyCeil: function (val, epsilon) {
7676
if (epsilon === undefined) { epsilon = 0.0001; }
@@ -82,7 +82,7 @@ Phaser.Math = {
8282
*
8383
* @param {number} val
8484
* @param {number} [epsilon=(small value)]
85-
* @return {boolean} floor(val-epsilon)
85+
* @return {number} floor(val+epsilon)
8686
*/
8787
fuzzyFloor: function (val, epsilon) {
8888
if (epsilon === undefined) { epsilon = 0.0001; }

0 commit comments

Comments
 (0)