Added point to line distance method, Point2D enhancements