CRect:Union
The Union method creates the union of this CRect with another CRect. The resulting CRect has the greatest absolute extent in each dimension.
CRect:Union( CRect2 ) whereCRect2 is another CRect object. |
The following script replaces the properties of CRect R with its union with another CRect:
|
-- create a CRect object |
|
|
|
-- create another CRect object |
|
|
|
-- updates R, does not change R2 |
|
-- result: -100:250, 200:800. |
CRect class, Intersection, Offset, Inflate
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.