GSharker / G-Shark

G-Shark is a free and open-source geometry library designed for computational designers and software developers in the Architecture, Engineering, and Construction (AEC) industry.
https://gsharker.github.io/G-Shark/
MIT License
215 stars 37 forks source link

Extra vector angle function. #407

Closed wilham7 closed 1 year ago

wilham7 commented 1 year ago

Hey there,

I've been using the VectorAngle and VectorAngleOnPlane functions.

I would like the possibility to use the VectorAngleOnPlane function and ALWAYS receive the angle between A and B, regardless of if it is reflex or regular angle. This is how the VectorAngle function works as does the Rhino vector and angle method.

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Vector3d_VectorAngle_1.htm

Thanks!

sonomirco commented 1 year ago

Using the current VectorAngleOnPlane, the angle returned could be internal or the reflexAngle. It would be nice to have this method passing returning only the angle between the vectors as Vector3d.VectorAngle in Rhinocommon does. https://github.com/mcneel/rhinocommon/issues/178