External module "utils/number"
Functions
areNumbersEqual
- areNumbersEqual(a: number, b: number): boolean
-
Parameters
Returns boolean
deg2rad
- deg2rad(deg: number): number
-
Parameters
Returns number
getClosestScaleIndex
- getClosestScaleIndex(scales: [number, number], scale: number): number
-
Parameters
-
scales: [number, number]
-
scale: number
Returns number
getFiniteScaleIndexForScale
- getFiniteScaleIndexForScale(finiteScaleList: number[], scale: number): number
-
Parameters
-
finiteScaleList: number[]
-
scale: number
Returns number
restrictToRange
- restrictToRange(val: number, lower: number, upper: number): number
-
Parameters
-
val: number
-
lower: number
-
upper: number
Returns number
roundTo
- roundTo(num: number, decimals?: number): number
-
Parameters
-
num: number
-
Default value decimals: number = 2
Returns number
scaleRangeBetween
- scaleRangeBetween(scale: number, minScale: number, maxScale: number): boolean
-
Parameters
-
scale: number
-
minScale: number
-
maxScale: number
Returns boolean
sum
- sum<T>(array: T[], numSelector: function): number
-
Type parameters
Parameters
-
array: T[]
-
numSelector: function
-
-
Parameters
Returns number
Returns number
Indicates if the given numbers are equal