Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Features » RectangleSides

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
Input value
inRectangle const Rectangle2D&
Output value
outTopSide Optional<Segment2D&> NIL
Output value
outRightSide Optional<Segment2D&> NIL
Output value
outBottomSide Optional<Segment2D&> NIL
Output value
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.