My ultimate objective is to determine a vector that represents the direction of the green line depicted in the image below, based solely on the positions of the yellow and green dots.
To clarify, the angle of the vector can vary as long as its endpoint lies somewhere on the green-blue surface of the cylinder. Hence, there is 360° freedom around the cylinder, with a limitation of approximately 15° at the edges.
The cylinder is positioned perpendicular to the line connecting the yellow and green dots.
The length of the vector is insignificant, only the direction matters.
My primary challenge lies in figuring out how to derive a vector perpendicular to the one from the Yellow to the green dot.
PS: None of these elements are aligned along the x, y, z axis. The grid is not based on the xyz coordinates, but is provided for visualization purposes.
https://i.sstatic.net/4OFVc.png