Spatial Primitives

SpatialIndexing.touchesFunction
touches(a::Rect, b::Rect)

Check whether a and b rectangles touches from the inside (i.e. any low side touches low or high touches high).

source
Base.inFunction
in(a::Region, b::Region)

Check whether a is contained inside b.

source
SpatialIndexing.enlargementFunction
enlargement(a::Region, b::Region)

How much a grows when combined with b.

The difference between the MBR area of the a and b union and the MBR area of a.

source