Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace arithmetic

Index

Functions

degrees2radians

  • degrees2radians(n: number): number

inRange0to255

  • inRange0to255(n: number): number

inRange0to255Rounded

  • inRange0to255Rounded(n: number): number

intInRange

  • intInRange(value: number, low: number, high: number): number

max3

  • max3(a: number, b: number, c: number): number

min3

  • min3(a: number, b: number, c: number): number

stableSort

  • stableSort<T>(arrayToSort: T[], callback: (a: T, b: T) => number): T[]
  • Type parameters

    • T

    Parameters

    • arrayToSort: T[]
    • callback: (a: T, b: T) => number
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns T[]

Generated using TypeDoc