Math#fuzzyFloor()

fuzzyFloor(val, epsilon) → {number} Applies a fuzzy floor to the given value. Parameters Name Type Argument Default Description val number The value to floor. epsilon number <optional> 0.0001 The epsilon (a small value used in the calculation) Returns number - floor(val+epsilon) Source code: math/Math.js (Line 107)

Math#fuzzyEqual()

fuzzyEqual(a, b, epsilon) → {boolean} Two number are fuzzyEqual if their difference is less than epsilon. Parameters Name Type Argument Default Description a number The first number to compare. b number The second number to compare. epsilon number <optional> 0.0001 The epsilon (a small value used in the calculation) Returns boolean - True if | a-b | <epsilon Source code: math/Math.js (Line 40)

Math#fuzzyCeil()

fuzzyCeil(val, epsilon) → {number} Applies a fuzzy ceil to the given value. Parameters Name Type Argument Default Description val number The value to ceil. epsilon number <optional> 0.0001 The epsilon (a small value used in the calculation) Returns number - ceiling(val-epsilon) Source code: math/Math.js (Line 91)

Math#floorTo()

floorTo(value, place, base) → {number} Floors to some place comparative to a base, default is 10 for decimal place.The place is represented by the power applied to base to get that place. Parameters Name Type Argument Default Description value number The value to round. place number <optional> 0 The place to round to. base number <optional> 10 The base to round in. Default is 10 for decimal. Returns number - The rounded value. Source code: math/Math.js (Li

Math#factorial()

factorial(value) → {number} Parameters Name Type Description value number the number you want to evaluate Returns number - Source code: math/Math.js (Line 859)

Math#distanceSq()

distanceSq(x1, y1, x2, y2) → {number} Returns the euclidean distance squared between the two given set ofcoordinates (cuts out a square root operation before returning). Parameters Name Type Description x1 number y1 number x2 number y2 number Returns number - The distance squared between the two sets of coordinates. Source code: math/Math.js (Line 989)

Math#distancePow()

distancePow(x1, y1, x2, y2, pow) → {number} Returns the distance between the two given set of coordinates at the power given. Parameters Name Type Argument Default Description x1 number y1 number x2 number y2 number pow number <optional> 2 Returns number - The distance between the two sets of coordinates. Source code: math/Math.js (Line 1009)

Math#distance()

distance(x1, y1, x2, y2) → {number} Returns the euclidian distance between the two given set of coordinates. Parameters Name Type Description x1 number y1 number x2 number y2 number Returns number - The distance between the two sets of coordinates. Source code: math/Math.js (Line 970)

Math#difference()

difference(a, b) → {number} The absolute difference between two values. Parameters Name Type Description a number The first value to check. b number The second value to check. Returns number - The absolute difference between the two values. Source code: math/Math.js (Line 902)

Math#degToRad()

degToRad(degrees) → {number} Convert degrees to radians. Parameters Name Type Description degrees number Angle in degrees. Returns number - Angle in radians. Source code: math/Math.js (Line 1186)