Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » CropLineToRectangle
Creates a segment contained in a rectangle from a line.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::CropLineToRectangle ( const avl::Line2D& inLine, const avl::Rectangle2D& inRectangle, atl::Conditional<avl::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. |