Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

clamp

  • clamp(value: number, min: number, max: number): number
  • Parameters

    • value: number
    • min: number
    • max: number

    Returns number

deg

  • deg(rad: number): number
  • Parameters

    • rad: number

    Returns number

deviation

  • deviation(data: number[]): number
  • Parameters

    • data: number[]

    Returns number

dist

  • dist(x1: number, y1: number, x2: number, y2: number): number
  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number

    Returns number

fract

  • fract(x: number): number
  • Parameters

    • x: number

    Returns number

lerp

  • lerp(start: number, end: number, t: number): number
  • Parameters

    • start: number
    • end: number
    • t: number

    Returns number

map

  • map(value: number, start1: number, end1: number, start2: number, end2: number): number
  • Parameters

    • value: number
    • start1: number
    • end1: number
    • start2: number
    • end2: number

    Returns number

max

  • max(data: number[]): number
  • Parameters

    • data: number[]

    Returns number

mean

  • mean(data: number[]): number
  • Parameters

    • data: number[]

    Returns number

median

  • median(data: number[]): number
  • Parameters

    • data: number[]

    Returns number

min

  • min(data: number[]): number
  • Parameters

    • data: number[]

    Returns number

norm

  • norm(value: number, start: number, end: number): number
  • Parameters

    • value: number
    • start: number
    • end: number

    Returns number

rad

  • rad(deg: number): number
  • Parameters

    • deg: number

    Returns number

sum

  • sum(data: number[]): number
  • Parameters

    • data: number[]

    Returns number

variance

  • variance(data: number[]): number
  • Parameters

    • data: number[]

    Returns number