Exemplo n.º 1
0
		/// <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;
		}
Exemplo n.º 2
0
		/// <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;
		}