Back to FabImage Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » CropLineToRectangle
CropLineToRectangle
Creates a segment contained in a rectangle from a line.
Syntax
void fil::CropLineToRectangle ( const fil::Line2D& inLine, const fil::Rectangle2D& inRectangle, ftl::Conditional<fil::Segment2D>& outSegment )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inLine | const Line2D& | ||
![]() |
inRectangle | const Rectangle2D& | Rectangle defining a region the input line will be cropped to | |
![]() |
outSegment | Conditional<Segment2D>& |
Errors
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in CropLineToRectangle. |


