Quaternion rotations appear to work, but the line results are incorrect
Fully switched to quaternions for rotations