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