I am just a Grasshopper beginner, and I wish to share this definition for spherical coordinates, I did.
I was using Kangaroo 2, and felt the need to use the wind with spherical coordinates in degrees and the vector lenghts.
This definition bakes a vector in any direction but with more control in degrees with azimuth and elevation angles.
Nonetheless, there are some minor errors:
I wish the pointer to scale backwards from the tip to the base. it´s a pyramid from weaverbird, and also select any origin in the coordinate space, so the definition works anywhere in space when set to a new origin point.
Sure, but you are aware there are components for spherical points, namely Point Polar which creates XYZ points from polar coords and To Polar which gets polar coords from a XYZ point?
I’ve added an example of how this can be done to your gh definition. You need to place the base plane of the arrow at the coordinate origin and orient it to a vector from origin to target point. You also have to make sure your origin offset sliders apply to all elements.