/** * A cartesian point in 2 dimensions */ struct Point { Point(double myX, double myY) { x = myX; y = myY; } Point() { } double x; double y; }; const double PI = acos(-1); // pi is the angle whose cos is -1.