electronicFence.h 506 B

123456789101112131415161718192021222324
  1. #ifndef _ELECTRONICFENCE_H_
  2. #define _ELECTRONICFENCE_H_
  3. //-------------include
  4. #include<stdio.h>
  5. #include<math.h>
  6. #include<stdlib.h>
  7. #include <stdbool.h>
  8. //-------------typedef
  9. //-------------define
  10. #define REC_COORDINATE_DEPTH 200 // Receive coordinate depth
  11. //-------------Param
  12. extern double polygonLat[REC_COORDINATE_DEPTH];
  13. extern double polygonLng[REC_COORDINATE_DEPTH];
  14. //--------------Fun
  15. extern bool isPointInPolygon(double px, double py,
  16. double polygonXA[], double polygonYA[]);
  17. #endif