Index of Module rotation - part-cw/lambdanative GitHub Wiki
rotation
Module:Provides platform rotation and orientation in quaternions on Android and iOS devices.
Functions in this module:
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