I am unsure how exactly it can be inferred that the following sequence of logic gates and rotation operators acting on a three-qubit state $\lvert abc\rangle$
$$ R_{y,c}\left(\frac{\pi}{4}\right)CNOT(b,c)R_{y,c}\left(\frac{\pi}{4}\right)CNOT(a,c)R_{y,c}\left(-\frac{\pi}{4}\right)CNOT(b,c) R_{y,c}\left(-\frac{\pi}{4}\right) $$
(Where, for example, $R_{y,c}(\frac{\pi}{4})$ represents a $\frac{\pi}{4}$ rotation of qubit c about the y-axis and CNOT(b,c) represents the CNOT gate acting on the qubits b and c (b is the control and c is the target).)
Can represent that of a Toffoli gate but with relative phases.
My specific problem with understanding this sequence are the rotation operators. If I neglect the rotation operators and just apply the three CNOT logic gates for some state $\lvert abc\rangle$ (e.g. $\lvert 110\rangle$), it is apparent that the sequence of the three CNOT gates acts as a single Toffoli gate. But I'm confused by trying to understand what effect the rotation operators have on each c qubit. Do they cancel each other out? Do they impose a net rotation on some state $\lvert abc\rangle$?
I've tried to make sense of it all by envisioning rotations on a Bloch sphere but it hasn't helped. If anyone could provide an explanation as to what effect a rotation operator has on a qubit, that would be helpful. Thank you.