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
scaleRangeBetween
- scaleRangeBetween(scale: number, minScale: number, maxScale: number): boolean
-
Parameters
-
scale: number
-
minScale: number
-
maxScale: number
Returns boolean
Indicates if the given numbers are equal