Closed mosi6 closed 1 year ago
It's actually relatively easy to do, just change
to
for (var i = 0; i <= n; ++i) {
and
to
offset(
center, radius, earthRadius, start + (direction * Math.PI * -i) / n
)
I have already tested and verified that this works.
Please let me know if you have any more questions or I will close this issue 🙂
This code only lets me draw semi circles(180 deg) specifically and I want a generic way to draw any angle(quarter circles and any other angle). I already kind of implemented it on my own but I did use the math from this project so thanks a lot for that.
Hi! I need to be able to convert semi circles and quarter circles to geojson. I wonder if there’s any way to modify this script easily to accommodate for that. Thanks