intersections method
Returns all intersections between this rectangle's edges and the given line segment.
Implementation
Set<Vector2> intersections(LineSegment line) {
return edges.expand((e) => e.intersections(line)).toSet();
}
Returns all intersections between this rectangle's edges and the given line segment.
Set<Vector2> intersections(LineSegment line) {
return edges.expand((e) => e.intersections(line)).toSet();
}