Computes distances to polygon edges and vertices and can check whether points are inside/outside polygons.