Rect::TopSide

Rect::TopSide
inline Rect<T> TopSide(T height = 0.0) const;
Description

TopSide returns a new rectangle representing the top side of the current rectangle by default. The rectangle's components are determined by the following expression:

   (x1, y1, x2, y2) = (x1, y1, x2, y2 + height)
Parameters
Parameters 
Description 
T height = 0.0 
A value that is added to y1 in order to determine the placement of the new y2. Height is 0 by default, placing y2 directly on top of y1. 
Return Value

A new Rect representing the top side of the current rectangle.