Anonymous user
Convex hull: Difference between revisions
→{{header|Kotlin}}: wrong result for kotlin
Alextretyak (talk | contribs) (Added 11l) |
(→{{header|Kotlin}}: wrong result for kotlin) |
||
Line 1,597:
Convex Hull: [(-9, -3), (-3, -9), (19, -8), (17, 5), (12, 17), (5, 19), (-3, 15)]
</pre>
WARRNING: Wrong results for case:
<pre>
val points = arrayOf(
Point(1387, 2842),
Point(1247, 2842), // A
Point(1247, 2382), // B (it should be in result)
Point(1387, 2462),
Point(1247, 2462),
Point(1527, 2762),
Point(1387, 2382),
</pre>
Also if we swap points A and B then result will be different (!)
=={{header|Lua}}==
|