# Suppose I have an orientation as roll, pitch, yaw. How can I transform it into quaternion?

I am trying to represent a point (x,y,theta) as a quaternion. What is the easiest way to do that?