contains(x, y) → {boolean}
Checks whether the x and y coordinates are contained within this polygon.
Parameters
Name | Type | Description |
---|---|---|
x | number | The X value of the coordinate to test. |
y | number | The Y value of the coordinate to test. |
Returns
boolean -
True if the coordinates are within this polygon, otherwise false.
- Source code: geom/Polygon.js (Line 134)
Please login to continue.