Skip to content

Index of Module rotation

Walt K edited this page Apr 18, 2020 · 5 revisions

Module: rotation

Provides platform orientation in quaternions on Android and iOS devices.

Functions in this module:

Function Short Description
(rotation-x) Returns x*sin(θ/2)
(rotation-y) Returns y*sin(θ/2)
(rotation-z) Returns z*sin(θ/2)
(rotation-w) Returns z*sin(θ/2)
(rotation-z) Returns cos(θ/2)
(rotation-accuracy) Returns estimated heading accuracy (in radians, only Android) (-1 if unavailable)

For more see:

https://developer.android.com/reference/android/hardware/SensorEvent#sensor.type_rotation_vector-:

https://developer.apple.com/documentation/accelerate/working_with_quaternions

Clone this wiki locally