Rect::Normal

Rect::Normal
inline Rect<T> Normal() const;
Description

Normal returns a normalized copy of the current rectangle. In order to normalize the rectangle, its x1 and x2 components are compared, and its y1 and y2 components are compared. If (x1 > x2), the components are swapped. Likewise, if (y1 > y2), y1 and y2 are swapped.

Return Value

A new Rect representing the normalized current rectangle.

See Also