Function clamp

  • Clamps the values of the 4-element vector a so that they are not less than min and not greater than max, and stores the result in a

    Parameters

    • a: Vec4

      a 4-element vector object

    • min: number

      the minimum value allowed

    • max: number

      the maximum value allowed

    Returns Vec4

    a clamped to [min, max]

Generated using TypeDoc