-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arc segments API is difficult to understand to the point of being unusable #206
Comments
Thanks for raising this @johansen! This sounds like a bug in the library. I'll take a look at this over the weekend and get back to you with something that works in an absolute space. It should totally work how you're describing. |
Take a look here: http://codepen.io/larrybotha/pen/amredV?editors=0010 I converted radians to degrees in the console to make it easier to understand what's going on. If you set What is interesting is if you then set the The following can be ascertained from the result: I'm not sure if this is the intended behaviour by @jonobr1, but that should give you a better idea of what's going on at least! EDIT: updated function |
Hey @johansen, I've updated Two.js'
You can see an example of that here: http://codepen.io/jonobr1/full/VKovWP/ |
That looks perfect. Just the behavior I had been expecting. |
Hi, this might be really easy but I can't figure out how to do this. I want to draw an arc using |
@dumptyd on the second input in the following demo set |
Following up on @larrybotha's answer, if you make the |
Try as I might, I can't comprehend how to use the arc segment drawing API. Consider the following demo:
By adjusting the sliders, the start angle and end angle range between 0 and 2*PI. But the behavior of the arc segment that gets drawn is incomprehensible. The segment seems to rotate around the center in a way I can't account for, and thus the
makeArcSegment
function is useless to me.What I would have expected is for the
sa
andea
parameters to be absolute. So if I give a starting angle of 50 degrees and an ending angle of 60 degrees, I would see an arc drawn between 50 and 60 degrees from some fixed axis. But this isn't what seems to happen.I must be misunderstanding something, but at very least the documentation doesn't account sufficiently for the behavior of this function for me to be able to make use of it.
The text was updated successfully, but these errors were encountered: