IntersectLineSegments(Vector2, Vector2, Vector2, Vector2)
Finds the intersection between two line segments
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static Vector2 IntersectLineSegments(Vector2 line1Pt1, Vector2 line1Pt2, Vector2 line2Pt1, Vector2 line2Pt2)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 | The intersection point, or (float.PositiveInfinity, float.PositiveInfinity) if the lines are parallel |