You are here: Start » AVL.NET » Invoke.FitPathToPath
Rotates and shifts a path to minimize average distance between its points and a reference path.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void FitPathToPath ( Avl.Path inPath, Avl.Path inReferencePath, Avl.PathOrientationAlignment inPathOrientationAlignment, int inIterations, float inFirstShift, float inFirstRotation, Avl.Path outPath, out Avl.CoordinateSystem2D outAlignment, out float outPathDistance )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | Avl.Path | Path to be aligned. | ||
![]() | inReferencePath | Avl.Path | Path to align to. | ||
![]() | inPathOrientationAlignment | Avl.PathOrientationAlignment | EllipticAxes | Determines how to align paths orientation before the main algorithm. Default value: EllipticAxes. | |
![]() | inIterations | int | <1, INF> | 5 | Number of algorithm steps. Default value: 5. |
![]() | inFirstShift | float | 10.0f | Magnitude of possible shift at the first step in pixels. Default value: 10.0f. | |
![]() | inFirstRotation | float | 10.0f | Magnitude of possible rotation at the first step in degrees. Default value: 10.0f. | |
![]() | outPath | Avl.Path | Aligned path. | ||
![]() | outAlignment | Avl.CoordinateSystem2D | The coordinate system that geometrical objects defined in the context of the path should be aligned to. | ||
![]() | outPathDistance | float | Average distance of characteristic points of the input path from the reference path. |