Back to Aurora Vision Library website
You are here: Start » Function Reference » Path » Path Global Transforms » StretchPath
StretchPath
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Moves, rotates and scales the path so that its end-points end up at the given two points.
Syntax
C++
C#
void avl::StretchPath ( const avl::Path& inPath, const avl::Point2D& inNewEndpoint1, const avl::Point2D& inNewEndpoint2, avl::Path& outPath )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath | const Path& | Input path, must be open | ||
inNewEndpoint1 | const Point2D& | New starting point of the path | ||
inNewEndpoint2 | const Point2D& | New ending point of the path | ||
outPath | 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. |