You are here: Start » AVL.NET » AVL.AlignRectangle Method
AVL.AlignRectangle Method
Moves a rectangle from a local coordinate system to the absolute one.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void AlignRectangle( AvlNet.Rectangle2D inRectangle, AvlNet.CoordinateSystem2D inAlignment, bool inInverse, out AvlNet.Rectangle2D outAlignedRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRectangle | AvlNet.Rectangle2D | |||
![]() | inAlignment | AvlNet.CoordinateSystem2D | Coordinate system to align to. | ||
![]() | inInverse | bool | Switches to the inverse transform. | ||
![]() | outAlignedRectangle | AvlNet.Rectangle2D |
Description
AlignRectangle aligns the inRectangle to the inAlignment coordinate system. The input rectangle is translated, rotated and scaled.
The inAlignment is usually a coordinate system found by some template matching algorithm.
Examples
![]() |
![]() |
AlignRectangle performed on the sample rectangle. The inAlignment is drawn on the first image in blue.