Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimSegmentToRectangle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Creates a segment contained in a rectangle from another segment.
Syntax
C++
C#
void fil::TrimSegmentToRectangle ( const fil::Segment2D& inSegment, const fil::Rectangle2D& inRectangle, ftl::Conditional<fil::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>& |