Back to FabImage Library Lite website

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

LineLineIntersection


Header: FIL.h
Namespace: fil

Computes a common point of two lines.

Syntax

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