Beispiel #1
0
 public void Clamp(int min, MyIntVec2 max)
 {
     x = Mathf.Clamp(x, min, max.x);
     y = Mathf.Clamp(y, min, max.y);
 }
Beispiel #2
0
 public MyIntVec2 Subtract(MyIntVec2 other)
 {
     x -= other.x;
     y -= other.y;
     return(this);
 }
Beispiel #3
0
 public MyIntVec2(MyIntVec2 other)
 {
     x = other.x;
     y = other.y;
 }