You are here: Start » AVL.NET » AVL.SegmentLine(AvlNet.Segment2D, AvlNet.Line2D)

AVL.SegmentLine(AvlNet.Segment2D, AvlNet.Line2D)

Computes the line passing through a segment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void SegmentLine(
	AvlNet.Segment2D inSegment,
	out AvlNet.Line2D outLine
)

Parameters

inSegment
Type: AvlNet.Segment2D
Input segment
outLine
Type: AvlNet.Line2D
The resulting line

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 an empty segment is given on input.

Examples

SegmentLine performed on a segment with parameters: X1 = 50, Y1 = 50, X2 = 300, Y2 = 300.
outLine returns line (picture on right).

See also