Convex hull: Difference between revisions

Line 1,611:
</pre>
 
Also if we swap points A and B then result will be different (!). Probably the problem is that when we use p.sort() we sort only by x - but for case when A.x == B.x we should also sort by y (like in e.g. JavaScript version).
 
=={{header|Lua}}==
Anonymous user