Rect::RightSide

Rect::RightSide
inline Rect<T> RightSide(T width = 0.0) const;
Description

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
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. 
Return Value

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