public bool ContainsPoint(Vertex point) { //return true if the point to test is one of the vertices if (point.Equals(A) || point.Equals(B) || point.Equals(C)) return true; bool oddNodes = false; if (checkPointToSegment(C, A, point)) oddNodes = !oddNodes; if (checkPointToSegment(A, B, point)) oddNodes = !oddNodes; if (checkPointToSegment(B, C, point)) oddNodes = !oddNodes; return oddNodes; }