public BoundingBoxAttachment IntersectsSegment (float x1, float y1, float x2, float y2) { ExposedList<Polygon> polygons = Polygons; for (int i = 0, n = polygons.Count; i < n; i++) if (IntersectsSegment(polygons.Items[i], x1, y1, x2, y2)) return BoundingBoxes.Items[i]; return null; }