| 46 | class PointView; |
| 47 | |
| 48 | struct Point |
| 49 | { |
| 50 | Point(double x, double y) : x(x), y(y) { } |
| 51 | Point(const Point& other) : x(other.x), y(other.y) { } |
| 52 | |
| 53 | // Calculates the distance-squared to another point. |
| 54 | double sqDist(const Point& other) const |
| 55 | { |
| 56 | return (x - other.x) * (x - other.x) + (y - other.y) * (y - other.y); |
| 57 | } |
| 58 | |
| 59 | const double x; |
| 60 | const double y; |
| 61 | |
| 62 | Point& operator=(const Point&); // not implemented |
| 63 | }; |
| 64 | |
| 65 | struct QuadPointRef |
| 66 | { |