@@ -13,7 +13,7 @@ Pkg.add("ConcaveHull") # Add package
13
13
using ConcaveHull
14
14
using Plots
15
15
16
- points = [[th, - sin (th)] .+ (0.4 * rand (2 ) - 0.2 ) for th in linspace (0 ,2pi ,5000 )];
16
+ points = [[th, - sin (th)] .+ (0.4 * rand (2 ) - 0.2 ) for th in range (0 , stop = 2pi , length = 5000 )];
17
17
x = [p[1 ] for p in points];
18
18
y = [p[2 ] for p in points];
19
19
@@ -23,7 +23,7 @@ hull_area = area(hull)
23
23
scatter (x,y,ms= 1 ,label= " " ,axis= false ,grid= false ,markerstrokewidth= 0.0 )
24
24
plot! (hull)
25
25
annotate! (pi / 2 ,0.5 ," K = $(hull. k) " )
26
- annotate! (pi / 2 ,0.25 ," Area $(round (hull_area,3 )) " )
26
+ annotate! (pi / 2 ,0.25 ," Area $(round (hull_area, digits = 3 )) " )
27
27
```
28
28
![ ] ( ./docs/hull_15.png )
29
29
@@ -36,6 +36,6 @@ hull_area = area(hull)
36
36
scatter (x,y,ms= 1 ,label= " " ,axis= false ,grid= false ,markerstrokewidth= 0.0 )
37
37
plot! (hull)
38
38
annotate! (pi / 2 ,0.5 ," K = $(hull. k) " )
39
- annotate! (pi / 2 ,0.25 ," Area $(round (hull_area,3 )) " )
39
+ annotate! (pi / 2 ,0.25 ," Area $(round (hull_area, digits = 3 )) " )
40
40
```
41
41
![ ] ( ./docs/hull_100.png )
0 commit comments