System.Types.TRectF.Normalize
C++
void Normalize() _ALWAYS_INLINE {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | SystemTypes.h | System.Types | TRectF |
Description
Use Normalize to normalize a rectangle.
The Normalize function switches the Top and Bottom members if the Top is greater than the Bottom, and it switches the Left and the Right if the Left is greater than the Right.
- Notes:
- A normalized TRectF object is a rectangle where the Top is less than the Bottom and the Left is less than the Right.
- Several methods of TRectF (Height, Width, IsEmpty, PtInRect, and so on) assume normalized TRectF objects, so use NormalizeRect if the Top is greater than the Bottom or if the Left is greater than the Right.