Anonymous user
Convex hull: Difference between revisions
→{{header|Kotlin}}: JS
(→{{header|Kotlin}}: JS) |
|||
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}}==
|