I'm trying to use the rotation matrix to translate the accelerometer values from the device coordinates to the world coordinates. It's not clear how to do this. Theoretically, I should be able to do something like this:
double[][] accelArray = { {xaccel}, {yaccel}, {zaccel} }; Matrix accelDevice = new Matrix(accelArray); Matrix accelWorld = rotationMatrix.times(accelDevice); That code works for a third-party matrix library, but I can't figure out how to do it with any of the SensorManager methods or the Android Matrix classes. Any help would be appreciated. Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---