Spherical coordinates to Cartesian coordinates with arbitrary origin for spherical coordinate system

201 Views Asked by At

I have a global Cartesian coordinate system with a point $A(x,y,z)$ in it. I have a second point $B(r,\theta,\varphi)$ with coordinates in spherical coordinate system with $A$ as the origin of the spherical system. How do I find the global coordinates of point $B$?