This video goes through the basic steps to calculate a 45 degree rolling offset in a piping system. It uses two triangles to calculate the travel in the pipe.