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

Re: [sensors] Provide the DeviceOrientation sensor

From: Mikhail Pozdnyakov via GitHub <sysbot+gh@w3.org>
Date: Wed, 01 Mar 2017 09:45:14 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-283293120-1488361512-sysbot+gh@w3.org>
I'm just not sure how all above helps comparing to `void 
populateQuaternion(Float32Array quaternion);` When it is more 

AFAIK splitting scalar and vector parts will not be beneficial for 
representing the rotation quaternion (q) itself. This splitting is 
needed to represent as quaternion a 3-D vector that will be rotated: 
`p = (0 + px*i + py*j + pz*k)`, then we'll have `p' = q*p*(q^-1)`. Am 
I missing something?

Also I'd like to add that the BYOB semantics will allow overloading, 
i.e. it could accept also 3*3 matrices and different data types 
(Float64Array, DOMMatrix, ..)

GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/170#issuecomment-283293120 using
 your GitHub account
Received on Wednesday, 1 March 2017 09:45:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC