Skip to content

Function: containsXY

containsXY(extent, x, y): boolean

判断坐标是否在矩形范围内

Parameters

NameTypeDescription
extentanyExtent.
xanyX coordinate.
yanyY coordinate.

Returns

boolean

The x, y values are contained in the extent.

Api

Defined in

gl-core/src/utils/common.ts:173

Released under the MIT License.