You are here: Start » AVL.NET » AVL.AlignLine
Moves a line from a local coordinate system to the absolute one.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void AlignLine ( AvlNet.Line2D inLine, AvlNet.CoordinateSystem2D inAlignment, bool inInverse, out AvlNet.Line2D outAlignedLine )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inLine | AvlNet.Line2D | ||||
inAlignment | AvlNet.CoordinateSystem2D | Coordinate system to align to. | |||
inInverse | bool | Switches to the inverse transform. | |||
outAlignedLine | 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
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in AlignLine. |