Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Math2

Index

Functions

clamp

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

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

    Returns number

clamp01

  • clamp01(value: number): number
  • Parameters

    • value: number

    Returns number

clamp255

  • clamp255(value: number): number
  • Parameters

    • value: number

    Returns number

easeInCubic

  • easeInCubic(time: number, start: number, change: number, duration: number): number
  • Parameters

    • time: number
    • start: number
    • change: number
    • duration: number

    Returns number

easeInQuad

  • easeInQuad(time: number, start: number, change: number, duration: number): number
  • Parameters

    • time: number
    • start: number
    • change: number
    • duration: number

    Returns number

isInBound2Wrapped

  • isInBound2Wrapped(bound: Bound3, x: number, y: number): boolean
  • Parameters

    • bound: Bound3
    • x: number
    • y: number

    Returns boolean

isInBound3Wrapped

  • isInBound3Wrapped(bound: Bound3, x: number, y: number, z: number): boolean
  • Parameters

    • bound: Bound3
    • x: number
    • y: number
    • z: number

    Returns boolean

lerp

  • lerp(from: number, to: number, t: number): number
  • Parameters

    • from: number
    • to: number
    • t: number

    Returns number

roundNumber

  • roundNumber(num: any, dec: any): number
  • Parameters

    • num: any
    • dec: any

    Returns number

Generated using TypeDoc