Thank you for replying, Serge. I have known exactly what api document says about this method. But after some times of trial to figure out what it means, finally I realized values[] is in radian and this is everything what I needed to know...
On Jun 15, 6:01 pm, sm1 <sergemas...@gmail.com> wrote: > It's still June 15. Here's what is in the documentation: > > athttp://developer.android.com/reference/android/hardware/SensorManager...[], > float[]) > > you'll find: > > public static float[] getOrientation (float[] R, float[] values) > > Computes the device's orientation based on the rotation matrix. > When it returns, the array values is filled with the result: > values[0]: azimuth, rotation around the Z axis. > values[1]: pitch, rotation around the X axis. > values[2]: roll, rotation around the Y axis. > Parameters > R rotation matrix see getRotationMatrix(float[], float[], float[], > float[]). > values an array of 3 floats to hold the result. > Returns > The array values passed as argument. > > Regards, > serge > > On Jun 15, 5:29 pm, yoshitaka tokusho <ytoku...@gmail.com> wrote: > > > > > Is there no body here, or is my question too silly? > > > On Jun 15, 6:53 am, yoshitaka tokusho <ytoku...@gmail.com> wrote: > > > > Hi all, > > > > Simply what I have to suppose SensorManager.getOrientation()'s return > > > values are? I expected getOrientation returns yaw/pitch/roll values in > > > degrees like SensorEvent dose when callback returned. But all I can > > > get is some strenge floating number something about between -3.0 and > > > +3.0. Would someone knowledgeable teach me what it is? > > > > Any help will be so appreciated.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---