Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

clamp

  • clamp(x: number, min: number, max: number): number
  • function
    description

    Clamps a value based on min and max

    since

    1.0.0-beta

    Parameters

    • x: number

      Number

    • min: number

      Minimum

    • max: number

      Maximum

    Returns number

Generated using TypeDoc