Point distance from an arbitrary shape polygon