CRect:PtInsideInt
The PtInsideInt method tests whether a point is interior to the CRect when the coordinates are all considered to be integers rather than real numbers.
bSuccess = CRect:IsInsideInt( x, y ) wherex and y are numbers representing the coordinates of the target point. RemarksThis method handles the boundary case in which the point lies within the same integer value. For example, if xmin = 200.4, then any point x in the range 200 through 201 is considered to lie on the boundary xmin and is therefore considered inside the rectangle. |
The following script tests whether the point (225.2,300.6) is inside the CRect when tested using both PtInside() and PtInsideInt():
|
-- create a CRect object |
|
|
|
|
|
-- returns true or false |
|
-- result: Inside = 0 |
|
-- returns test = true or false |
|
-- result: Inside = 1 |
CRect class, PtInside, RectInside
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.