How do i make a point for line segment from p to infinite in
java?
in C++, it's
Point p;
Point extreme = {INF, p.y};
---------------------------------------------------------------------------------------------
boolean isInside(Point polygon[], int n, Point p)
{
// There must be at least 3 vertices in polygon[]
if (n < 3) return false;
// Create a point for line segment from p to infinite
//Point extreme = {INF, p.y};
p= Double.POSITIVE_INFINITY;
Point extreme = p.y;
// Count intersections of the...