Convex hull: Difference between revisions

Content added Content deleted
Line 1,611: Line 1,611:
</pre>
</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.
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}}==
=={{header|Lua}}==