locationIndexOnEdgeOrPath method

int locationIndexOnEdgeOrPath(
  1. Point<double> point,
  2. List<Point<double>> poly,
  3. bool closed,
  4. bool geodesic,
  5. double toleranceEarth,
)

Full control: segment index with closed/open and custom toleranceEarth.

Implementation

int locationIndexOnEdgeOrPath(Point<double> point, List<Point<double>> poly,
        bool closed, bool geodesic, double toleranceEarth) =>
    PolyUtils.locationIndexOnEdgeOrPath(
        point, poly, closed, geodesic, toleranceEarth);