algorithmic modeling for Rhino
You can use the Shared Rhino.Geometry.Vector3d.VectorAngle() function. It has two overloads, one which just computes the smallest angle through which you'd have to rotate one vector to get the other, and a function which calculates the angle in a specific plane.
Neither of them use the DotProduct operator, which is faster and sometimes suffices. The DotProduct does not allow you to determine that two vectors are pointing away from each other, instead you'll get the angle as if one vector were reversed.
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