Re: And now for some geometry: ordering 4 points around a quadrangle
Originally Posted by
spjackson
Doesn't this simple method work if you know that the quadrilateral is convex?
Sort points ascending by y value. 1st two are "bottom". 2nd two are "top". For the tops then the bottoms, use the x value to decide which is "left" and "right".
No
Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Bookmarks