Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimSegmentToPolygon
TrimSegmentToPolygon
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationBasic |
Finds all subsegments that are inside a given polygon.
Syntax
C++
C#
void avl::TrimSegmentToPolygon ( const avl::Path& inPolygon, const avl::Segment2D& inSegment, atl::Array<avl::Segment2D>& outSubsegments )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPolygon | const Path& | ||
![]() |
inSegment | const Segment2D& | ||
![]() |
outSubsegments | Array<Segment2D>& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Empty path on input in TrimSegmentToPolygon. |
| DomainError | Open path on input in TrimSegmentToPolygon. |


