UtilIntersectLineLine(Vector2, Vector2, Vector2, Vector2, Boolean) Method |
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static Vector2? IntersectLineLine(
Vector2 p1,
Vector2 p2,
Vector2 q1,
Vector2 q2,
bool bounded
)
Parameters
- p1 Vector2
- First point on first line or start of first line segment.
- p2 Vector2
- Second point on first line or end of first line segment.
- q1 Vector2
- First point on second line or start of second line segment.
- q2 Vector2
- Second point on second line or end of second line segment.
- bounded Boolean
- If true, then consider as line segments, otherwise consider as lines.
Return Value
NullableVector2null if no intersection, or a
Vector2 containing the intersection point.
See Also