CADability dotNET
Calculates the intersectionpoint of two lines in 2d.

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

Syntax

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

Parameters

StartPoint1
Type: CADability..::..GeoPoint2D
Startpoint of the first line
dir1
Type: CADability..::..GeoVector2D
Direction of the first line
StartPoint2
Type: CADability..::..GeoPoint2D
Startpoint of the second line
dir2
Type: CADability..::..GeoVector2D
Direction of the second line
IntersectionPoint
Type: CADability..::..GeoPoint2D%
the intersection point

Return Value

true, if there is an intersection point, otherwise false

See Also