algorithmic modeling for Rhino
Hey all, so i'm totally new to scripting and i'm wondering how can this be done
Evaluate the angle (a) between a vector and x axis
If (a) is positive
then rotate the vector about z axis with angle value (-a)
else rotate the vector about z axis with angle value (a)
I thought of dispatching the vector list with a logic button on gh and having two rotation "processes", but the problem is that i need the original order of the list for later operations
Thank in advance!
Tags:
Angle in 3d are always positive and in [0, PI].
You need to supply a plane to get an oriented angle (think of the argument of a complex number...)
To clarify this a little further:
When generating the plane from the crossProdukt(A,B) and than measuring the angleBetween(A,B) you get a angle between 0 and PI
but when computing the angleBetween(B,A) using the same crossProdukt vector you get an angle between Pi and 2*PI...
So the orientation of the plane Normal is of essence!
Again:
http://stackoverflow.com/questions/5188561/signed-angle-between-two...
thank you!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by