KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am getting a List of Points from the user clicking on the screen. And I want to draw a polygon based on this points. The problem is that the user might not be clicking in the right order ( no intersecting segments ) to form a correct polygon, therefor I'm looking for a code snippet which would sort that List and arrange the points in the right order to form a good polygon... Thanks! picture = BAD POLY! - picture = GOOD POLY!
Tags (comma-separated)
Save Edits
Cancel