Back to Adaptive Vision Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » CropSegmentToRectangle
![](../../img/icon/CropSegment.png)
CropSegmentToRectangle
Header: | AVL.h |
---|---|
Namespace: | avl |
Creates a segment contained in a rectangle from another segment.
Syntax
void avl::CropSegmentToRectangle ( const avl::Segment2D& inSegment, const avl::Rectangle2D& inRectangle, atl::Conditional<avl::Segment2D>& outSegment )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSegment | const Segment2D& | ||
![]() |
inRectangle | const Rectangle2D& | Rectangle defining a region the input segment will be cropped to | |
![]() |
outSegment | Conditional<Segment2D>& |