Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » TrimLine
TrimLine
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
Creates a segment contained in a box from a line.
Syntax
void avl::TrimLine ( const avl::Line2D& inLine, const avl::Box& inBox, atl::Conditional<avl::Segment2D>& outSegment )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inLine | const Line2D& | ||
![]() |
inBox | const Box& | Box defining a region the input line will be cropped to | |
![]() |
outSegment | Conditional<Segment2D>& |
Examples
![]() |
![]() |
TrimLine performed on line and box.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in TrimLine. |




