make linspace arg a float

This commit is contained in:
Michael K. Borregaard 2017-08-30 15:04:03 +02:00
parent 1e3783b4dc
commit 233f4d4465

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"
function makeshape(n; offset = -0.5, radius = 1.0)
z = offset * π
Shape(partialcircle(z, z + 2π, n+1, radius))
Shape(partialcircle(z, z + 2π, n+1., radius))
end