3D-City Model
    Preparing search index...

    Function clipValue

    • Restricts a value to a defined minimum and/or maximum. Returns the minimum if the value is below, the maximum if above, or the value itself if in range. Throws if min > max and both are defined.

      Parameters

      • value: number

        The value to clamp.

      • Optionalmin: number = undefined

        Optional lower bound (inclusive).

      • Optionalmax: number = undefined

        Optional upper bound (inclusive).

      Returns number

      The clipped value.

      If min > max.