Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace math

Index

Functions

Functions

  • clamp(value: number, min: number, max: number): number
  • Clamp value to be within the minimum and maximum range. This will round to the nearest boundary if the value is outside of it.

    Parameters

    • value: number

      The original value.

    • min: number

      The minimum possible value.

    • max: number

      The maximum possible value.

    Returns number

Generated using TypeDoc