MathHelperFindIntersection Method (Vector2, Vector2, Vector2, Vector2)
|
Calculates the intersection point of two lines.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public static Vector2 FindIntersection(
Vector2 point0,
Vector2 dir0,
Vector2 point1,
Vector2 dir1
)
Public Shared Function FindIntersection (
point0 As Vector2,
dir0 As Vector2,
point1 As Vector2,
dir1 As Vector2
) As Vector2
public:
static Vector2 FindIntersection(
Vector2 point0,
Vector2 dir0,
Vector2 point1,
Vector2 dir1
)
static member FindIntersection :
point0 : Vector2 *
dir0 : Vector2 *
point1 : Vector2 *
dir1 : Vector2 -> Vector2
STATIC METHOD FindIntersection(
point0 AS Vector2,
dir0 AS Vector2,
point1 AS Vector2,
dir1 AS Vector2
) AS Vector2
Parameters
- point0
- Type: DXFReaderNETVector2
First line origin point. - dir0
- Type: DXFReaderNETVector2
First line direction. - point1
- Type: DXFReaderNETVector2
Second line origin point. - dir1
- Type: DXFReaderNETVector2
Second line direction.
Return Value
Type:
Vector2The intersection point between the two line.
Remarks If the lines are parallel the method will return a
Vector2.NaN.
See Also