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 fragment normalizes the CRect:
|
-- create a CRect object |
|
-- set xmin > xmax and ymin > ymax |
|
-- result: 100:-200, 300:-600 |
|
-- reorder x and y data |
|
-- result: -200:100, -600:300. |