W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2017

Re: [sensors] Provide the DeviceOrientation sensor

From: Mikhail Pozdnyakov via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Feb 2017 13:25:42 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-282718973-1488201940-sysbot+gh@w3.org>
> Quaternions are a very nice and compact way of representing 
rotations. Ie. you can multiply quaternions to apply rotation (though 
non-commutative - due to being rotations). They are basically the 
evolution of complex numbers (which are good for rotations in 2D 
space), and you can easily build a rotation matrix from them.

And they are also not susceptible to [gimbal 
lock](https://en.wikipedia.org/wiki/Gimbal_lock) which is a big 
benefit

-- 
GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/170#issuecomment-282718973 using
 your GitHub account
Received on Monday, 27 February 2017 13:25:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:22 UTC