isShallow method

bool isShallow(
  1. Coordinate p0,
  2. Coordinate p1,
  3. Coordinate p2,
  4. double distanceTol,
)

Implementation

bool isShallow(
    Coordinate p0, Coordinate p1, Coordinate p2, double distanceTol) {
  double dist = Distance.pointToSegment(p1, p0, p2);
  return dist < distanceTol;
}