IntersectsSegment(Rect, Vector2, Vector2)
Check if a line segment overlaps a rectangle.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
public static bool IntersectsSegment(Rect rect, Vector2 p1, Vector2 p2)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if line segment overlaps rectangle. False otherwise. |