Back to Aurora Vision Library Lite website

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

LineLineIntersection


Header: AVL.h
Namespace: avl

Computes a common point of two lines.

Syntax

void avl::LineLineIntersection
(
	const avl::Line2D& inLine1,
	const avl::Line2D& inLine2,
	atl::Conditional<avl::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