Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • areNumbersEqual(a: number, b: number): boolean
  • Indicates if the given numbers are equal

    export

    Parameters

    • a: number
    • b: number

    Returns boolean

  • deg2rad(deg: number): number
  • Converts the given angle in degrees to radians

    Parameters

    • deg: number

      The angle in degrees

    Returns number

  • getClosestScaleIndex(scales: [number, number], scale: number): number
  • Gets the closest scale index for the given scale and scale array pair

    export

    Parameters

    • scales: [number, number]
    • scale: number

    Returns number

  • getFiniteScaleIndexForScale(finiteScaleList: number[], scale: number): number
  • Gets the applicable finite scale index for the given scale and finite scale array

    export

    Parameters

    • finiteScaleList: number[]
    • scale: number

    Returns number

  • rad2deg(radians: number): number
  • Converts the given angle in radians to degrees

    since

    0.13

    Parameters

    • radians: number

    Returns number

  • restrictToRange(val: number, lower: number, upper: number): number
  • Restricts the given number to the given range

    export

    Parameters

    • val: number
    • lower: number
    • upper: number

    Returns number

  • roundTo(num: number, decimals?: number): number
  • Rounds the given number to the specified number of decimals

    since

    0.11

    export

    Parameters

    • num: number
    • decimals: number = 2

    Returns number

  • scaleRangeBetween(scale: number, minScale: number, maxScale: number): boolean
  • Indicates if the given scale is within the specified range

    export

    Parameters

    • scale: number
    • minScale: number
    • maxScale: number

    Returns boolean

  • sum<T>(array: T[], numSelector: (item: T) => number): number
  • Computes the sum of the given array

    since

    0.11

    export

    Type parameters

    • T

    Parameters

    • array: T[]
    • numSelector: (item: T) => number
        • (item: T): number
        • Parameters

          • item: T

          Returns number

    Returns number

Generated using TypeDoc