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