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 |
|
-- set xmin > xmax and ymin > ymax |
|
-- result: 100:-200, 300:-600 |
|
-- reorder x and y data |
|
-- result: -200:100, -600:300. |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.