Convert vector3 to quaternion

What I'm really looking for is to get from vector3 to euler angles.

I was thinking of converting a vector3 to a quaternion, and then using the eulerAngles method in the quaternion.

I want to be able to tell how many degrees away from Up the iphone's accelerometer is along a single axis.

Thanks

I think you want to use Quaternion.LookRotation() to create a rotation facing that Vector then measure the angle of the new quaternion.