Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Spatial Transforms » CropSegmentToRectangle

CropSegmentToRectangle


Header:AVL.h
Namespace:avl

Creates a segment contained in a rectangle from another segment.

Syntax

C++
C#
 
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>&