Re: [sensors] Provide the DeviceOrientation sensor

I'm just not sure how all above helps comparing to `void 
populateQuaternion(Float32Array quaternion);` When it is more 
convenient?

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