Function clamp01Into

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

    Parameters

    • a: Vec3

      a 3-element vector object

    • b: Vec3

      a 3-element vector in which to store the result

    Returns Vec3

    b as a clamped to [0.0, 1.0]

Generated using TypeDoc