I have a 3d polyhedron for which I know the normal angle of each face.
I want to compute the bearing between two points on the same face, given their Cartesian coordinates.
My hunch was to use SVD to rotate to points into their natural axes,and extract the Euler angles in each dimension from the rotation matrix, which I have done. But I'm not really sure how (or if) to go from there.
EDIT: The bearing with respect to the plane. That is, if the the polyhedron was a cube who's edges were parallel to the axes, then the problem reduces to the 2D bearing, as discussed here becuase the two points would have equal values in one dimension. Essentially, I want to solve that problem when my plane is not the xy plane, but I know its normal.
EDIT2: If my surface were a sphere of known radius, I could compute the latitude and longitude from the Cartesian coordinates and then calculate the azimuth from one point to the other. I want a value analogous to the azimuth for a polyhedral surface, given that the points are on the same face.