Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Utils/NumberUtils

Index

Functions

  • calcEasing(value: number, type: EasingType): number
  • clamp(num: number, min: number, max: number): number
  • Clamps a number between a minimum and maximum value

    Parameters

    • num: number

      the source number

    • min: number

      the minimum value

    • max: number

      the maximum value

    Returns number

  • Gets the distance between two coordinates

    Parameters

    Returns { distance: number; dx: number; dy: number }

    • distance: number
    • dx: number
    • dy: number
  • getParticleBaseVelocity(direction: number): Vector
  • mix(comp1: number, comp2: number, weight1: number, weight2: number): number