electronicFence.h 532 B

1234567891011121314151617181920212223
  1. #ifndef _ELECTRONICFENCE_H_
  2. #define _ELECTRONICFENCE_H_
  3. //-------------include
  4. #include <math.h>
  5. #include <stdbool.h>
  6. #include <stdlib.h>
  7. #include <stdio.h>
  8. //-------------typedef
  9. //-------------define
  10. #define REC_COORDINATE_DEPTH 5 // Receive coordinate depth
  11. //-------------Param
  12. extern double polygonLat[REC_COORDINATE_DEPTH];
  13. extern double polygonLng[REC_COORDINATE_DEPTH];
  14. //--------------Fun
  15. extern int pointInPolygon(double pointLat, double pointLng, double polygonLat[], double polygonLng[], int numPoints);
  16. #endif