Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Intersections » LineLineIntersection

LineLineIntersection


Header: FIL.h
Namespace: fil
Module: FoundationLite

Computes a common point of two lines.

Syntax

C++
C#
 
void fil::LineLineIntersection
(
	const fil::Line2D& inLine1,
	const fil::Line2D& inLine2,
	ftl::Conditional<fil::Point2D>& outIntersectionPoint
)

Parameters

Name Type Default Description
Input value
inLine1 const Line2D&
Input value
inLine2 const Line2D&
Output value
outIntersectionPoint Conditional<Point2D>&

Hints

  • Whenever possible, prefer LineSegmentIntersection instead as it is more numerically stable for near-parallel lines.

Examples

LineLineIntersection performed on two lines.

See Also