123456789101112131415161718192021222324 |
- #ifndef _ELECTRONICFENCE_H_
- #define _ELECTRONICFENCE_H_
- //-------------include
- #include<stdio.h>
- #include<math.h>
- #include<stdlib.h>
- #include <stdbool.h>
- //-------------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[]);
- #endif
|