You are here: Start » AVL.NET » AVL.AlignSegment
Moves a segment from a local coordinate system to the absolute one.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void AlignSegment ( AvlNet.Segment2D inSegment, AvlNet.CoordinateSystem2D inAlignment, bool inInverse, out AvlNet.Segment2D outAlignedSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSegment | AvlNet.Segment2D | ||||
inAlignment | AvlNet.CoordinateSystem2D | Coordinate system to align to. | |||
inInverse | bool | Switches to the inverse transform. | |||
outAlignedSegment | AvlNet.Segment2D |
Description
AlignSegment aligns the inSegment to the inAlignment coordinate system. The input segment is translated, rotated and scaled.
The inAlignment is usually a coordinate system found by some template matching algorithm.