You are here: Start » AVL.NET » AVL.AlignPath(AvlNet.Path, AvlNet.CoordinateSystem2D, bool, AvlNet.Path)

AVL.AlignPath(AvlNet.Path, AvlNet.CoordinateSystem2D, bool, AvlNet.Path)

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void AlignPath(
	AvlNet.Path inPath,
	AvlNet.CoordinateSystem2D inAlignment,
	bool inInverse,
	out AvlNet.Path outPath
)

Parameters

inPath
Type: AvlNet.Path
Input path
inAlignment
Type: AvlNet.CoordinateSystem2D
Coordinate system to align to
inInverse
Type: System.Boolean
Switches to the inverse transform
outPath
Type: AvlNet.Path
Output path

Description

AlignPath aligns the inPath to the inAlignment coordinate system. The input path is translated, rotated and scaled.

The inAlignment is usually an alignment of an object found by some template matching algorithm.

Examples

AlignPath run on the sample paths.

See also