Functions
areNumbersEqual
- areNumbersEqual(a: number, b: number): boolean
Parameters
Returns boolean
deg2rad
- deg2rad(deg: number): 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
rad2deg
- rad2deg(radians: number): 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
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: (item: T) => number): number
Type parameters
Parameters
array: T[]
numSelector: (item: T) => number
Returns number
Indicates if the given numbers are equal