These rotations are intrinsic rotations and the calculus behind them is similar to the Frenet-Serret formulas. Performing a rotation in an intrinsic reference frame is equivalent to right-multiply its characteristic matrix (the matrix that has the vector of the reference frame as columns) by the matrix of the rotation.