You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.AlignLine

FIL.AlignLine

Moves a line from a local coordinate system to the absolute one.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void AlignLine
(
	FilNet.Line2D inLine,
	FilNet.CoordinateSystem2D inAlignment,
	bool inInverse,
	out FilNet.Line2D outAlignedLine
)

Parameters

Name Type Range Default Description
inLineFilNet.Line2D
inAlignmentFilNet.CoordinateSystem2DCoordinate system to align to.
inInverseboolSwitches to the inverse transform.
outAlignedLineFilNet.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

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in AlignLine.

See also