intersection method

List<GeoBox> intersection(
  1. GeoBox geoBox
)

Computes the intersection with the passed GeoBox.

The altitude values are ignored. Limitation: Geo boxes are considered as non-intersecting if they overlap only on a single point, horizontal line or vertical line.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • geoBox Another geo box to check intersection with.

Returns List<GeoBox>. It will be empty if there is no overlap.

Otherwise, 1 or more geo boxes covering common area by this and passed GeoBox.

Implementation

List<GeoBox> intersection(GeoBox geoBox) => $prototype.intersection(this, geoBox);