Obviously, you need to provide the function RotationMatrix[ angle,
axisVector ] for the algorithm to work.
On the other hand, matrices for rotations about the Cartesian axes,
i.e., RotX,RotY, & RotZ, can be written done directly. Why not do so?