Reduced computations for rotateBone()

Added a helper function to reduce the number of times the sine and
cosine needs to be computed for a rotation from four per bone that is
recursively rotated to two for the entire execution.