/// <summary>
		/// Query the partition, returning instances that may potentially intersect the bounding box area
		/// </summary>
		/// <param name="boundsMax"></param>
		/// <param name="boundsMin"></param>
		/// <param name="resultCallback">Callback for results. Return true to continue the query</param>
		public void Query(ref Vector3 boundsMin, ref Vector3 boundsMax, Func<IDraw, bool> resultCallback)
		{
			if (queryBox == null)
				queryBox = new AABBToAABBPrimitive();
			queryBox.boundsMax = boundsMax;
			queryBox.boundsMin = boundsMin;
			Query(queryBox, resultCallback);
		}
Example #2
0
 /// <summary>
 /// Query the partition, returning instances that may potentially intersect the bounding box area
 /// </summary>
 /// <param name="boundsMax"></param>
 /// <param name="boundsMin"></param>
 /// <param name="resultCallback">Callback for results. Return true to continue the query</param>
 public void Query(ref Vector3 boundsMin, ref Vector3 boundsMax, Callback <bool, IDraw> resultCallback)
 {
     if (queryBox == null)
     {
         queryBox = new AABBToAABBPrimitive();
     }
     queryBox.boundsMax = boundsMax;
     queryBox.boundsMin = boundsMin;
     Query(queryBox, resultCallback);
 }