Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimPathToRectangle
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationLite |
Creates a path contained in a rectangle from another path.
Syntax
C++
C#
void avl::TrimPathToRectangle ( const avl::Path& inPath, const avl::Rectangle2D& inRectangle, avl::TrimPathMethod::Type inTrimPathMethod, avl::Path& outPath )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
inTrimPathMethod | TrimPathMethod::Type | PointToPoint | |
![]() |
outPath | Path& | Output path |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Unknown method for cropping a path in TrimPathToRectangle. |


