I have a polygon (in PHP) represented by an array of points X, Y. I want to find the shortest path inside the polygon between point A and point B. In practical terms, I have an arbitrary area defined as a simple polygon about which I want to know the distance (for example, think of it as a polygon representing a trace - I want to evaluate how long the trail takes).
Look for pseudo code or a few tips on where to start. I browsed the Internet and it seemed unlucky, except for some itβs hard to understand the documents on triangulation and funnel algorithms.
source share