Options
All
  • Public
  • Public/Protected
  • All
Menu

Numeric functions and number helpers

Hierarchy

  • NumberUtil

Index

Methods

Methods

Static constrain

  • constrain(value: number, min: number, max: number): number
  • Constrain a value to a minimum and maximum (if outside bounds, clip to bounds

    Parameters

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

    Returns number

Generated using TypeDoc