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 )
|
The following script fragment 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. |