3 ms·
If there's no restriction other than not wanting the lines to cross, then I'd find the centre of the polygon by taking the average of the list of points, then v
by mooism2 15y ago
If there's no restriction other than not wanting the lines to cross, then I'd find the centre of the polygon by taking the average of the list of points, then visiting those points in a clockwise direction.
If you need to restrict yourself to following streets on the map, it might be a bit trickier...
- iambot 15y agostreets dont matter, and thanks for the answer, are there any libraries for doing calulation like this, or would i have to write it manually?