DescriptionAndroid: fix the computation of device orientation angles in accordance with spec.
Currently the alpha, beta, gamma device orientation angles are
computed incorrectly in Chrome. This patch provides an implementation
for the computation of these angles according to spec, see
http://dev.w3.org/geo/api/spec-source-orientation.html. In particular
the ranges for alpha [0,2*pi), beta [-pi,pi) and gamma [-pi/2,pi/2),
with clockwise-positive rotation conventions.
At present time most browsers implement the orientation angles
incorrectly. For example Safari, Firefox and Opera all provide
different and inconsitent results. The solution in this patch could
serve as a reference implementation.
BUG=244411
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232299
Patch Set 1 #
Total comments: 18
Patch Set 2 : fixed comments #
Total comments: 2
Patch Set 3 : fixed comment #
Messages
Total messages: 11 (0 generated)
|