@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function clampV

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

      Parameters

      • a: Vec4

        a 4-element vector object

      • min: Vec4

        a 4-element vector specifying the minimum values

      • max: Vec4

        a 4-element vector specifying the maximum values

      Returns Vec4

      a clamped to [min, max]