You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AlignArc
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Moves an arc from a local coordinate system to the absolute one.
Applications: Required when there is an arc defined in a local coordinate system, but the next image-related filter in the program does not have any inAlignment input.
Syntax
void fil::AlignArc ( const fil::Arc2D& inArc, const fil::CoordinateSystem2D& inAlignment, bool inInverse, fil::Arc2D& outAlignedArc )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inArc | const Arc2D& | ||
![]() |
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | |
![]() |
inInverse | bool | Switches to the inverse transform | |
![]() |
outAlignedArc | Arc2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inArc and outAlignedArc
Read more about In-place Computation.
Description
AlignArc aligns the inArc to the inAlignment coordinate system. The input arc is translated, rotated and scaled.
The inAlignment is usually a coordinate system found by some template matching algorithm.
Examples
![]() |
![]() |
AlignArc performed on the sample arc. The inAlignment is drawn on the first image in blue.
See Also
- RotateArc – Rotates an arc clockwise around center point.
- TranslateArc – Translates an arc by a vector.
- AlignPath – Moves a path from a local coordinate system to the absolute one.