inline Rect<T> LeftSide(T width = 0.0) const;
LeftSide returns a new rectangle representing the left side of the current rectangle by default. The rectangle's components are determined by the following expression:
(x1, y1, x2, y2) = (x1, y1, (x1 + width), y2)
Parameters |
Description |
T width = 0.0 |
A value that is added to x1 in order to determine the placement of the new x2. Width is assigned 0 by default, placing x2 directly on top of x1. |
A new Rect representing the left side of the current rectangle.