CRect:Normalize
The Normalize method adjust the CRect limits to be positive definite, so that xmax >= xmin and ymax >= ymin.
CRect:Normalize() |
The following script normalizes the CRect:
|
-- create a CRect object |
|
-- result: 100:-200, 300:-600 |
|
-- reorder x and y data |
|
-- result: -200:100, -600:300. |