inline Rect<T> TopSide(T height = 0.0) const;
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 |
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. |
A new Rect representing the top side of the current rectangle.