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 )
|
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. |