Back to Aurora Vision Library website

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

RectangleSides


Header: AVL.h
Namespace: avl
Module: FoundationLite

Returns segments representing the sides of the input rectangle.

Syntax

C++
C#
 
void avl::RectangleSides
(
	const avl::Rectangle2D& inRectangle,
	atl::Optional<avl::Segment2D&> outTopSide = atl::NIL,
	atl::Optional<avl::Segment2D&> outRightSide = atl::NIL,
	atl::Optional<avl::Segment2D&> outBottomSide = atl::NIL,
	atl::Optional<avl::Segment2D&> outLeftSide = atl::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 atl::NIL to these parameters: outTopSide, outRightSide, outBottomSide, outLeftSide.

Read more about Optional Outputs.