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

    Function clamp01

    • Clamps the values of the two-element vector a so that they are not less than 0.0 and not greater than 1.0, and stores the result in a

      Parameters

      • a: Vec2

        a 2-element vector object

      Returns Vec2

      a clamped to [0.0, 1.0]