- 
        Couldn't load subscription status. 
- Fork 88
Index of Module rotation
        Walt K edited this page Sep 8, 2020 
        ·
        5 revisions
      
    Module: rotation
Provides platform rotation and orientation in quaternions on Android and iOS devices.
| Functions | Short Description | 
|---|---|
| (rotation-x) | Returns x*sin(θ/2) | 
| (rotation-y) | Returns y*sin(θ/2) | 
| (rotation-z) | Returns z*sin(θ/2) | 
| (rotation-w) | Returns cos(θ/2) | 
| (rotation-accuracy) | Returns estimated heading accuracy (in radians, only Android) (-1 if unavailable) | 
| (rotation-vect) | Returns rotation /quarternions list (list (rotation-x) (rotation-y) (rotation-z) (rotation-w)) | 
| (rotation-roll . v) | Returns roll angle in radians (derived from sensors or rotation vect) | 
| (rotation-yaw . v) | Returns yaw angle in radians (derived from sensors or rotation vect) | 
| (rotation-pitch . v) | Returns pitch angle in radians (derived from sensors or rotation vect) | 
| (rotation-orientation . v) | Returns orientation angles as list in degrees (derived from sensors or rotation vect) | 
| Support Functions | Short Description | 
|---|---|
| (rotation:rad2deg) | Converts single value or list from rad to deg | 
| (rotation:deg2rad) | Converts single value or list from deg to rad | 
For more see:
https://developer.android.com/reference/android/hardware/SensorEvent#sensor.type_rotation_vector-:
https://developer.apple.com/documentation/accelerate/working_with_quaternions
- 
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip