IsPointInRegion

Parameters
whichRegionregion

The region to check.

xreal

The x-coordinate of the cell to check.

yreal

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 (raise an issue to discuss on Github or submit a PR)
return type
boolean
Source code
native IsPointInRegion              takes region whichRegion, real x, real y returns boolean