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

    Function clamp01

    • Clamps the value x so that it is not less than 0.0 and not greater than 1.0

      Parameters

      • x: number

        the value to clamp

      Returns number

      x clamped to [0.0, 1.0]