Back to FabImage Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » CropLine
CropLine
Creates a segment contained in a box from a line.
Syntax
void fil::CropLine ( const fil::Line2D& inLine, const fil::Box& inBox, ftl::Conditional<fil::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
![]() |
![]() |
CropLine performed on line and box.
Errors
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in CropLine. |




