IntersectsSegment(Rect, Vector2, Vector2)
Check if a line segment overlaps a rectangle.
읽는 시간 1분최근 업데이트: 한 달 전
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. |