Function clampVInto

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

    Parameters

    • a: Vec3

      a 3-element vector object

    • min: Vec3

      a 3-element vector specifying the minimum values

    • max: Vec3

      a 3-element vector specifying the maximum values

    • b: Vec3

      a 3-element vector in which to store the result

    Returns Vec3

    b as a clamped to [min, max]

Generated using TypeDoc