public void Clamp(int min, MyIntVec2 max) { x = Mathf.Clamp(x, min, max.x); y = Mathf.Clamp(y, min, max.y); }
public MyIntVec2 Subtract(MyIntVec2 other) { x -= other.x; y -= other.y; return(this); }
public MyIntVec2(MyIntVec2 other) { x = other.x; y = other.y; }