Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » LineThroughPoints

LineThroughPoints


Header: FIL.h
Namespace: fil
Module: FoundationLite

Computes a line passing through two distinct points.

Syntax

C++
C#
 
void fil::LineThroughPoints
(
	const fil::Point2D& inPoint1,
	const fil::Point2D& inPoint2,
	fil::Line2D& outLine
)

Parameters

Name Type Default Description
Input value inPoint1 const Point2D&
Input value inPoint2 const Point2D&
Output value outLine Line2D&

Description

Note that because of inaccuracies of floating-point arithmetic, some geometric operations (including this one) may lead to unpredictable results for degenerated cases. In this filter such a case occurs when the input points are almost equal.

Examples

LineThroughPoints performed on two points.