More send in time (also Point Inside PolyGon)
Dar Scott
dsc at swcp.com
Mon Jun 30 15:11:00 EDT 2003
On Monday, June 30, 2003, at 01:35 PM, Dar Scott wrote:
> if the mouseLoc is within the rectangle of graphic "Test" then
I just read Monte's mail on testing whether a point is within a polygon
and realized that 'within()' and 'is within' are not the same function.
The within() function looks pretty handy.
Replace above with this:
if within(graphic "Test", mouseLoc()) then
Hmmm. And I think Monte just demonstrated that this statement from the
TD is not quite right:
> Comments:
> The expression
> point is within the rect of object
> is equivalent to
> within(object,point)
It may have contributed to throwing Eric off.
Dar Scott
More information about the use-livecode
mailing list