containsPointInEdge method

bool containsPointInEdge(
  1. Edge edge
)

Implementation

bool containsPointInEdge(Edge edge) {
  return p1 == edge.p1 || p1 == edge.p2 || p2 == edge.p1 || p2 == edge.p2;
}