You are here: Start » AVL.NET » AVL.PathAlongPath
Transforms a path to a coordinate system in which the 'axis' path is vertical or horizontal.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void PathAlongPath ( AvlNet.Path inPath, AvlNet.Path inAxis, AvlNet.Axis inAxisType, float inAxisCoordinate, bool inInverse, AvlNet.Path outPath )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | AvlNet.Path | Input path. | |||
inAxis | AvlNet.Path | Input axis path. | |||
inAxisType | AvlNet.Axis | Y | Type of axis the input axis path is parallel to. Default value: Y. | ||
inAxisCoordinate | float | 0.0f | Coordinate of the axis path. Default value: 0.0f. | ||
inInverse | bool | True | Switches to the inverse operation. Default value: True. | ||
outPath | AvlNet.Path | Transformed path. |
Description
This filter transforms each point in inPath the same way how PointAlongPath does.
Examples
Remarks
No new points are being added to input path during transformation, and this may lead to some "distortions" of path. This is especially visible on long, straight portions of input path, which are described with only 2 points: the beginning one and the ending one. After transformation, such part of path is still a line, but it may not be corresponding to the transformed image. Easy way to overcome this problem is to increase number of points creating an transformed path.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty path on input in PathAlongPath. |