Example #1
0
		/// <summary>
		/// 获取两个范围的交集
		/// </summary>
		public Bound3 GetIntersection(Bound3 other)
		{
			other.x = x.GetIntersection(other.x);
			other.y = y.GetIntersection(other.y);
			other.z = z.GetIntersection(other.z);
			return other;
		}
Example #2
0
		/// <summary>
		/// 获取两个范围的交集
		/// </summary>
		public Bound2 GetIntersection(Bound2 other)
		{
			other.x = x.GetIntersection(other.x);
			other.y = y.GetIntersection(other.y);
			return other;
		}