文件:CPtInPolygon.h
#pragma once
#i nclude <vector> using namespace std;
class Point { public: Point(int x=0, int y=0):cx(x),cy(y){} public: int operator ==(const Point &pt) { return ((this->cx==pt.cx) && (this->cy=pt.cy)); } Point& operator =(const Point &pt) { cx=pt.cx; cy=pt.cy; return *this; } public: int cx; int cy; };
typedef vector<Point> Polygon;
…… |