Now, at point B I want to rotate the line, basically calculating a new point C, knowing both angles theta1 (in the XZ plane) with respect to the old theta0 of the lineBeforeRotation and phi1 (in the XY plane) with respect to the old phi0 of the lineBeforeRotation. I also know the distance between B and C, rho.
What is the simplest way of calculating the cartesian coordinates of the C point?