1234567891011121314151617181920212223 |
- #ifndef _ELECTRONICFENCE_H_
- #define _ELECTRONICFENCE_H_
- //-------------include
- #include <math.h>
- #include <stdbool.h>
- #include <stdlib.h>
- #include <stdio.h>
- //-------------typedef
- //-------------define
- #define REC_COORDINATE_DEPTH 5 // Receive coordinate depth
- //-------------Param
- extern double polygonLat[REC_COORDINATE_DEPTH];
- extern double polygonLng[REC_COORDINATE_DEPTH];
- //--------------Fun
- extern int pointInPolygon(double pointLat, double pointLng, double polygonLat[], double polygonLng[], int numPoints);
- #endif
|