zesage / motion_sensors

Flutter plugin for accessing the Android and iOS accelerometer gyroscope and magnetometer sensors.
Apache License 2.0
42 stars 49 forks source link

How do I use full 360 degree rotation instead of -180 to 180 #8

Open fernandasdias opened 3 years ago

fernandasdias commented 3 years ago

Hey, thanks for the package!

How can I change the degree for orientation.x to use full 360? thanks for the help

zesage commented 3 years ago

360 - degrees(orientation.x) % 360

fernandasdias commented 3 years ago

Thanks!