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