예제 #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;
		}
예제 #2
0
파일: Bound2.cs 프로젝트: poup/ankagaja
		/// <summary>
		/// 获取两个范围的交集
		/// </summary>
		public Bound2 GetIntersection(Bound2 other)
		{
			other.x = x.GetIntersection(other.x);
			other.y = y.GetIntersection(other.y);
			return other;
		}