Original Post
I need to implement a simple routine which, given a distance, pitch angle and yaw angle, will provide the inputs to an OpenGL GLrotatef command which will cause the object located at the origin to rotate the specified amount. I presume this would entail converting the input Euler data into a quaternion, doing the rotation and then converting the quaternion to the required vector/angle format. Does anyone have such a thing handy and working?