You are here: Start » AVL.NET » AVS.FitPathToPath Method
AVS.FitPathToPath Method
Rotates and shifts a path to minimize average distance between its points and a reference path.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void FitPathToPath ( AvlNet.Path inPath, AvlNet.Path inReferencePath, AvlNet.PathOrientationAlignment inPathOrientationAlignment, int inIterations, float inFirstShift, float inFirstRotation, AvlNet.Path outPath, out AvlNet.CoordinateSystem2D outAlignment, out float outPathDistance )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | AvlNet.Path | Path to be aligned. | |||
inReferencePath | AvlNet.Path | Path to align to. | |||
inPathOrientationAlignment | AvlNet.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 | AvlNet.Path | Aligned path. | |||
outAlignment | AvlNet.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. |