Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Convex-hull/Maple/convex-hull.maple
Normal file
13
Task/Convex-hull/Maple/convex-hull.maple
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
pts:=[[16,3],[12,17],[0,6],[-4,-6],[16,6],[16,-7],[16,-3],[17,-4],[5,19],[19,-8],
|
||||
[3,16],[12,13],[3,-4],[17,5],[-3,15],[-3,-9],[0,11],[-9,-3],[-4,-2],[12,10]]:
|
||||
|
||||
with(geometry):
|
||||
map(coordinates,convexhull([seq(point(P||i,pts[i]),i=1..nops(pts))]));
|
||||
# [[-9, -3], [-3, -9], [19, -8], [17, 5], [12, 17], [5, 19], [-3, 15]]
|
||||
|
||||
with(ComputationalGeometry):
|
||||
pts[ConvexHull(pts)];
|
||||
# [[12, 17], [5, 19], [-3, 15], [-9, -3], [-3, -9], [19, -8], [17, 5]]
|
||||
|
||||
simplex:-convexhull(pts);
|
||||
# [[-9, -3], [-3, -9], [19, -8], [17, 5], [12, 17], [5, 19], [-3, 15]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue