Given a set of points on the surface of a hemisphere defined by the XZ plane in a left handed coordinate system:
And given a normal vector to a plane that defines another arbitrary hemisphere:
How can I define a rotation matrix that allows me to transform each point (vector) from the first hemisphere into the correspondent point in the second hemisphere?
If possible, it would be handy to have a rotation matrix that uses the spherical coordinates of N as rotation angles, with $\theta$ being the polar angle that goes $0$ to $\pi$ (intuitively from Y to -Y) and $\phi$ being the azimuthal angle that goes from $0$ to $2\pi$ (from X back again to X passing through +Z, -X, -Z).