IsPointInRegion

Parameters
whichRegion region

The region to check.

x real

The x-coordinate of the cell to check.

y real

The y-coordinate of the cell to check.

comment

Checks whether a point is contained within a region.

note

The passed coordinates rounded down to a multiple of 32 are the minimum coordinates of the cell. E.g., (32, 32), (40, 40) and (63, 63) all yield the cell [minX=32, minY=32, maxX=64, maxY=64], (-64, -64), (-40, -40) and (-32, -32) all yield the cell [minX=-64, minY=-64, maxX=-32, maxY=-32].

note

Returns false if whichRegion is null.

patch

1.00

Source
common.j
return type
boolean
Source code
native IsPointInRegion              takes region whichRegion, real x, real y returns boolean