Merge pull request #2163 from daschw/coords

small coords bug-fix
This commit is contained in:
Daniel Schwabeneder 2019-08-28 21:34:22 +02:00 committed by GitHub
commit 3a775315b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -794,7 +794,7 @@ end
@deprecate curve_points coords
coords(curve::BezierCurve, n::Integer = 30; range = [0,1]) = map(curve, range(range..., stop=n, length=50))
coords(curve::BezierCurve, n::Integer = 30; range = [0,1]) = map(curve, Base.range(range..., length=n))
# build a BezierCurve which leaves point p vertically upwards and arrives point q vertically upwards.
# may create a loop if necessary. Assumes the view is [0,1]