rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

How can i convert the ((MotionVector)a.Value).Z from accelerattor to a angle? #138

Closed gilbertopavanelli closed 6 years ago

gilbertopavanelli commented 6 years ago

How can i convert the ((MotionVector)a.Value).Z from accelerattor to a angle?

gilbertopavanelli commented 6 years ago

In case someone is interested, i am using

var inclinacao = (90 - ((Math.Acos(((MotionVector)a.Value).Z / 9.8) * (180 / Math.PI))));