Method GetRectIntersection
GetRectIntersection(Line, Rect, ref Vector2, ref Vector2)
Get the intersection status and points between a line and a rect.
Declaration
public static bool GetRectIntersection(AutoRouter.Line a, Rect rc, ref Vector2 entry, ref Vector2 exit)
Parameters
Type | Name | Description |
---|---|---|
AutoRouter.Line | a | Line that intersect the rect |
Rect | rc | Rect tested for intersection |
Vector2 | entry | Line enter the rect from that point |
Vector2 | exit | Line exist the rect from that point |
Returns
Type | Description |
---|---|
bool | True if line intersects the rect |