You are here: Start » AVL.NET » AVL.AlignSegment(AvlNet.Segment2D, AvlNet.CoordinateSystem2D, bool, AvlNet.Segment2D)

AVL.AlignSegment(AvlNet.Segment2D, AvlNet.CoordinateSystem2D, bool, AvlNet.Segment2D)

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void AlignSegment(
	AvlNet.Segment2D inSegment,
	AvlNet.CoordinateSystem2D inAlignment,
	bool inInverse,
	out AvlNet.Segment2D outSegment
)

Parameters

inSegment
Type: AvlNet.Segment2D
inAlignment
Type: AvlNet.CoordinateSystem2D
Coordinate system to align to
inInverse
Type: System.Boolean
Switches to the inverse transform
outSegment
Type: 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.

Examples

AlignSegment performed on the sample segment. The inAlignment is drawn on the first image in blue.

See also