Back to Aurora Vision Library website

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

TrimSegmentToRectangle


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a segment contained in a rectangle from another segment.

Syntax

C++
C#
 
void avl::TrimSegmentToRectangle
(
	const avl::Segment2D& inSegment,
	const avl::Rectangle2D& inRectangle,
	atl::Conditional<avl::Segment2D>& outSegment
)

Parameters

Name Type Default Description
Input value inSegment const Segment2D&
Input value inRectangle const Rectangle2D& Rectangle defining a region the input segment will be cropped to
Output value outSegment Conditional<Segment2D>&