index/vec2.js
function(low, high, returnNew) {
      var ret = this.min(high, true).max(low);
      if (returnNew) {
        return ret;
      } else {
        return this.set(ret.x, ret.y);
      }
    }
function(low, high, returnNew) {
      var ret = this.min(high, true).max(low);
      if (returnNew) {
        return ret;
      } else {
        return this.set(ret.x, ret.y);
      }
    }
function ( low , high , returnNew ) { var ret = this . min ( high , true ) . max ( low ) ; if ( returnNew ) { return ret ; } else { return this . set ( ret . x , ret . y ) ; } }
Clamp values into a range. If this vector's values are lower than the `low`'s values, then raise them.  If they are higher than `high`'s then lower them.  Passing returnNew as true will cause a new Vec2 to be returned.  Otherwise, this vector's values will be clamped
Clamp values into a range . If this vector s values are lower than the low s values then raise them . If they are higher than high s then lower them . Passing returnNew as true will cause a new Vec2 to be returned . Otherwise this vector s values will be clamped