Delete adjust the intersection to account for the bounds: 		intersection.x += bounds.xMin; 		intersection.y += bounds.yMin; 		 		return intersection; 	} 	 }