?? ptinpolygon.h
字號:
#pragma once
#define Global_Tolerance 1.0e-8
typedef struct _Point{
double x;
double y;
_Point(){this->x = this->y = 0.0f;}
_Point(double x, double y){this->x = x; this->y = y;}
bool operator==(const _Point &pt) const
{
if(fabs(x-pt.x) < Global_Tolerance &&
fabs(y-pt.y) < Global_Tolerance)
return TRUE;
else
return FALSE;
}
}Point;
int PointInPolygon(const SHPObject *polygonObject, double x, double y);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -