intersectsSegment method
Implementation
BoundingBoxAttachment? intersectsSegment(
double x1, double y1, double x2, double y2) {
final List<Float32List> polygons = this.polygons;
final int n = polygons.length;
for (int i = 0; i < n; i++) {
if (intersectsSegmentPolygon(polygons[i], x1, y1, x2, y2)) {
return boundingBoxes[i];
}
}
return null;
}