You are here: Start » AVL.NET » AVL.AlignLine(AvlNet.Line2D, AvlNet.CoordinateSystem2D, bool, AvlNet.Line2D)

AVL.AlignLine(AvlNet.Line2D, AvlNet.CoordinateSystem2D, bool, AvlNet.Line2D)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void AlignLine(
	AvlNet.Line2D inLine,
	AvlNet.CoordinateSystem2D inAlignment,
	bool inInverse,
	out AvlNet.Line2D outLine
)

Parameters

inLine
Type: AvlNet.Line2D
inAlignment
Type: AvlNet.CoordinateSystem2D
inInverse
Type: System.Boolean
outLine
Type: AvlNet.Line2D

Description

AlignLine aligns the inLine to the inAlignment coordinate system. The input line is translated, rotated and scaled.

The inAlignment is usually a coordinate system found by some template matching algorithm.

Examples

AlignLine performed on the sample line. The inAlignment is drawn on the first image in blue.

Errors

Error type Description
DomainError Indefinite line on input in AlignLine.

See also