vec3.angle(a,b)
-
Hello,
I am new to jscad. I was using OpenSCAD and didn't know about jscad until recently but I'm loving it.
On to my comment:
vec3.angle(a, b) returns the angle using acos. Because acos(-x) = acos(x) it returns the absolute value of the angle, i.e. it leaves out the direction. Maybe the absolute angle is useful but my use case is to roll geometry from a to b, so I want not only the magnitude but the direction. I can still get it another way.
But thank you for all the hard work.
-
@sopatt Thanks for the feedback.
FYI, Most computations are based upon the glMatrix library (glmatrix.net)
I will double check but this is probably the same functionality as glmatrix.
-
@sopatt Sorry to the late reply.
You probably already know this but an ''orientation" is required to determine the rotation, and sign of the angle.
This is probably the best implementation out there. And if you want then this could be added to the vec3 functions.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login