Vec2.clamp

Bounds the vector between those boundaries.

  1. Vec2!T clamp(Vec2!T min, Vec2!T max)
  2. Vec2!T clamp(Vec4!T clip)
    struct Vec2(T)
    const
    clamp
    (
    const Vec4!T clip
    )

Meta