You are here: Start » AVL.NET » Function Reference » Path » Path Global Transforms » AVL.StretchPath
AVL.StretchPath
Moves, rotates and scales the path so that its end-points end up at the given two points.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void StretchPath ( AvlNet.Path inPath, AvlNet.Point2D inNewEndpoint1, AvlNet.Point2D inNewEndpoint2, AvlNet.Path outPath )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPath | AvlNet.Path | Input path, must be open. | |||
inNewEndpoint1 | AvlNet.Point2D | New starting point of the path. | |||
inNewEndpoint2 | AvlNet.Point2D | New ending point of the path. | |||
outPath | AvlNet.Path | Output path. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Path cannot be closed in StretchPath. |
DomainError | Path too short in Stretch Path. |