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

    Function clampInto

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

      Parameters

      • a: Vec3

        a 3-element vector object

      • min: number

        the minimum value allowed

      • max: number

        the maximum value allowed

      • b: Vec3

        a 3-element vector in which to store the result

      Returns Vec3

      b as a clamped to [min, max]