intersectsLineSegment method

bool intersectsLineSegment(
  1. LineSegment segment
)

Whether the LineSegment intersects the Rect

Implementation

bool intersectsLineSegment(LineSegment segment) {
  return intersectsSegment(segment.from, segment.to);
}