public static bool TriangleContainsPoint1(double x1, double y1, double x2, double y2, double x3, double y3, double x, double y) { var tri = new List <(double X, double Y)> { (x1, y1), (x2, y2), (x3, y3) }; return(PolygonContourContainsPointTests.PolygonContourContainsPoint(tri, x, y)); } }
public static bool QuadContainsPoint1(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double x, double y) { var quad = new List <(double X, double Y)> { (x1, y1), (x2, y2), (x3, y3), (x4, y4) }; return(PolygonContourContainsPointTests.PolygonContourContainsPoint(quad, x, y)); } }