#ifndef _ELECTRONICFENCE_H_ #define _ELECTRONICFENCE_H_ //-------------include #include #include #include #include //-------------typedef //-------------define #define REC_COORDINATE_DEPTH 200 // Receive coordinate depth //-------------Param extern double polygonLat[REC_COORDINATE_DEPTH]; extern double polygonLng[REC_COORDINATE_DEPTH]; //--------------Fun extern bool isPointInPolygon(double px, double py, double polygonXA[], double polygonYA[], int num); #endif