RectUtils.IntersectsSegment
Parameters
| rect | Rectangle to check. | |
| p1 | Line segment point 1. | |
| p2 | Line segment point 2. |
Returns
bool True if line segment overlaps rectangle. False otherwise.
Description 描述
Check if a line segment overlaps a rectangle.
| rect | Rectangle to check. | |
| p1 | Line segment point 1. | |
| p2 | Line segment point 2. |
bool True if line segment overlaps rectangle. False otherwise.
Check if a line segment overlaps a rectangle.