Revert "Removed unused deg2rad function."

This reverts commit b5e9462cd82b4820bbafc41aad5806d49096807a.
Turns out, I was using this function.