Compare commits

...

1 Commits

Author SHA1 Message Date
Michael K. Borregaard
233f4d4465 make linspace arg a float 2017-08-30 15:04:03 +02:00

View File

@ -89,7 +89,7 @@ end
"create a shape by picking points around the unit circle. `n` is the number of point/sides, `offset` is the starting angle" "create a shape by picking points around the unit circle. `n` is the number of point/sides, `offset` is the starting angle"
function makeshape(n; offset = -0.5, radius = 1.0) function makeshape(n; offset = -0.5, radius = 1.0)
z = offset * π z = offset * π
Shape(partialcircle(z, z + 2π, n+1, radius)) Shape(partialcircle(z, z + 2π, n+1., radius))
end end