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 ) where CRect2 is another CRect object. |
The following script replaces CRect R with its intersection with CRect R2:
|
-- create a CRect object |
|
-- create another CRect object |
|
-- updates R, does not change R2 |
|
-- result: 100:200, 300:600. |