Algorithm to determine the geofence and see if the point is inside / outside of it

I am looking for an algorithm to create geofence and check if a device enters a fence. I looked at a point in polygonal algorithms (ray count and winding number), but are there any algorithms that can be applied to the circle and to any irregular shapes? An important limitation is time efficiency.

Thank.

+5
source share
4 answers

The circles of zeros are quite light (at least if you assume a locally flat surface) - just the absolute distance from the point.

, , - , , , , , , .

- ?

ps . , ?

+2

, , r-.

0

But the bottom line is that for both geometric correctness and efficiency, the winding number algorithm should always be preferable for determining whether a point is included in a polygon.

0
source

All Articles