CADability dotNET
Calculates the intersectionpoint of two lines in 2d. The intersection point may be in any extension of the two lines.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static bool IntersectLL(
	GeoPoint2D StartPoint1,
	GeoPoint2D EndPoint1,
	GeoPoint2D StartPoint2,
	GeoPoint2D EndPoint2,
	out GeoPoint2D IntersectionPoint
)
Visual Basic
Public Shared Function IntersectLL ( _
	StartPoint1 As GeoPoint2D, _
	EndPoint1 As GeoPoint2D, _
	StartPoint2 As GeoPoint2D, _
	EndPoint2 As GeoPoint2D, _
	<OutAttribute> ByRef IntersectionPoint As GeoPoint2D _
) As Boolean
Visual C++
public:
static bool IntersectLL(
	GeoPoint2D StartPoint1, 
	GeoPoint2D EndPoint1, 
	GeoPoint2D StartPoint2, 
	GeoPoint2D EndPoint2, 
	[OutAttribute] GeoPoint2D% IntersectionPoint
)

Parameters

StartPoint1
Type: CADability..::..GeoPoint2D
Startpoint of the first line
EndPoint1
Type: CADability..::..GeoPoint2D
Endpoint of the first line
StartPoint2
Type: CADability..::..GeoPoint2D
Startpoint of the second line
EndPoint2
Type: CADability..::..GeoPoint2D
Endpoint of the second line
IntersectionPoint
Type: CADability..::..GeoPoint2D%
the intersection point

Return Value

true, if there is an intersection point, otherwise false

See Also