|
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.
Syntax
|
CRect:Intersection( CRect2 )
whereCRect2 is another
CRect object.
|
Example
The following script replaces CRect
R with its intersection with
CRectR2:
|
R = new_rect()
|
|
|
R:Set(100, 200, 300, 600)
|
|
|
R2 = new_rect()
|
|
|
R2:Set(-100, 250, 200, 800)
|
|
|
R:Intersection(
R2 )
|
|
|
Printf("%lg:%lg, %lg:%lg\n",
R:Get())
|
|
Related Topics
CRect class
Union
Offset
Inflate
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|