Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimSegment
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Creates a segment contained in a box from another segment.
Syntax
C++
C#
void fil::TrimSegment ( const fil::Segment2D& inSegment, const fil::Box& inBox, ftl::Conditional<fil::Segment2D>& outSegment )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSegment | const Segment2D& | ||
![]() |
inBox | const Box& | ||
![]() |
outSegment | Conditional<Segment2D>& |
Examples
![]() |
![]() |
TrimSegment performed on the sample box and segment.