Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » RectangleSides
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Returns segments representing the sides of the input rectangle.
Syntax
C++
C#
void fil::RectangleSides ( const fil::Rectangle2D& inRectangle, ftl::Optional<fil::Segment2D&> outTopSide = ftl::NIL, ftl::Optional<fil::Segment2D&> outRightSide = ftl::NIL, ftl::Optional<fil::Segment2D&> outBottomSide = ftl::NIL, ftl::Optional<fil::Segment2D&> outLeftSide = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
outTopSide | Optional<Segment2D&> | NIL | |
![]() |
outRightSide | Optional<Segment2D&> | NIL | |
![]() |
outBottomSide | Optional<Segment2D&> | NIL | |
![]() |
outLeftSide | Optional<Segment2D&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outTopSide, outRightSide, outBottomSide, outLeftSide.
Read more about Optional Outputs.