Spatial Primitives
SpatialIndexing.Region — TypeBase abstract class for implementing regions in N-dimensional space with dimensions of type T.
SpatialIndexing.Point — TypeN-dimensional point.
SpatialIndexing.Rect — TypeRectangular region constrained by low[i]...high[i] in each of N dimensions.
SpatialIndexing.empty — Functionempty(::Type{T}) where T<:RegionGenerate empty (uninitialized) region of type T.
SpatialIndexing.isvalid — Functionisvalid(a::Region)Check that the parameters of a are valid and it defines a proper region.
SpatialIndexing.center — Functioncenter(a::Region)The center point of a.
SpatialIndexing.area — Functionarea(a::Region)N-dimensional "area" (volume etc) of a.
SpatialIndexing.perimeter — Functionperimeter(a::Region)The sum of the a sides.
SpatialIndexing.intersects — Functionintersects(a::Region, b::Region)Check whether a intersects with b.
SpatialIndexing.contains — Functioncontains(a::Region, b::Region)Check whether a contains b.
SpatialIndexing.touches — Functiontouches(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).
Base.in — Functionin(a::Region, b::Region)Check whether a is contained inside b.
SpatialIndexing.overlap_area — Functionoverlap_area(a::Region, b::Region)The area of MBR for a and b intersection.
SpatialIndexing.combined_area — Functioncombined_area(a::Region, b::Region)The area of MBR for the union of a and b.
SpatialIndexing.enlargement — Functionenlargement(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.
SpatialIndexing.combine — Functioncombine(a::Region, b::Region)MBR that contains both a and b regions.
SpatialIndexing.intersect — Functionintersect(a::Region, b::Region)MBR that is an intersection of a and b regions.