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

AVL.LineThroughPoints

Computes a line passing through two distinct points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void LineThroughPoints
(
	AvlNet.Point2D inPoint1,
	AvlNet.Point2D inPoint2,
	out AvlNet.Line2D outLine
)

Parameters

Name Type Range Default Description
inPoint1AvlNet.Point2D
inPoint2AvlNet.Point2D
outLineAvlNet.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.

See also