Method GetIntersection
GetIntersection(Line, Line, ref Vector2, float)
Get Intersection status and point for 2 lines
Declaration
public static bool GetIntersection(AutoRouter.Line a, AutoRouter.Line b, ref Vector2 v, float tolerance = 0.1)
Parameters
Type | Name | Description |
---|---|---|
AutoRouter.Line | a | First point |
AutoRouter.Line | b | Second point |
Vector2 | v | Intersection point coordinate |
float | tolerance | Check for intersection within this tolerance |
Returns
Type | Description |
---|---|
bool | True if lines intersect |