electronicFence(8110).h 481 B

123456789101112131415161718192021
  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. //-------------define
  9. #define REC_COORDINATE_DEPTH 200 // Receive coordinate depth
  10. //-------------Param
  11. extern double polygonLat[REC_COORDINATE_DEPTH];
  12. extern double polygonLng[REC_COORDINATE_DEPTH];
  13. //--------------Fun
  14. extern bool isPointInPolygon(double px, double py,
  15. double polygonXA[], double polygonYA[]);
  16. #endif