Function clampV

  • Element-wise clamping of the values of the two-element vector a so that they are not less than the values of the two-element vector min and not greater than the values of the two-element vector max. The result is stored in a

    Parameters

    • a: Vec2

      a 2-element vector object

    • min: Vec2

      a 2-element vector specifying the minimum values

    • max: Vec2

      a 2-element vector specifying the maximum values

    Returns Vec2

    a clamped to [min, max]

Generated using TypeDoc