Spatial Math Module
Module Name: Microsoft.Maps.SpatialMath
In some applications it may be necessary to perform complex spatial calculations, such as the distance between two locations, or intersection area of two polygons. The Spatial Math module provides several commonly required spatial calculations.
The Spatial Math module has three core parts:
- Common Spatial Calculations: This part consists of a set of commonly used spatial calculations, such as the ability to calculate distances between locations, or perform unit conversions. These calculations are exposed as static methods on the
- Geometry Calculations: This part consists of a set of complex geometric functions which can be used to perform binary operations against shapes (union, intersect, differences...), generate convex and concave hulls, and create Voronoi diagrams. These static methods are exposed through the
- Tile Math: This part provides a set of methods that perform spatial calculations based on the Tile pyramid used by Bing Maps as defined here. This is often useful when creating custom data visualizations. These static methods are exposed through the
In most calculations the distance or area unit parameters are optional. The default distance units used is meters, and the default area units is square meters.
- AreaUnits Enumeration
- BufferEndCap Enumeration
- Core Calculations
- DistanceUnits Enumeration
- Geometry Calculations
- Tile Calculations