Skip to content

Function: intersects

intersects(extent1, extent2): boolean

extent1 是否包含 extent2 extent1[3] |--------| | | extent1[0]| |extent1[2] |--------| extent1[1]

       extent2[3]
      |--------|
      |        |

extent2[0]| |extent2[2] |--------| extent2[1]

Parameters

NameType
extent1Bounds
extent2Bounds

Returns

boolean

Defined in

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

Released under the MIT License.