/// <summary> /// Keeps the maximum of each dimension. /// </summary> public void Max(IntCoord other) { if (other.X > X) X = other.X; if (other.Y > Y) Y = other.Y; }
/// <summary> /// Keeps the minimum of each dimension. /// </summary> public void Min(IntCoord other) { if (other.X < X) X = other.X; if (other.Y < Y) Y = other.Y; }