OSDN Git Service

don't attempt to normalize the rotation vector
authorMathias Agopian <mathias@google.com>
Mon, 22 Nov 2010 09:04:09 +0000 (01:04 -0800)
committerMathias Agopian <mathias@google.com>
Thu, 28 Jun 2012 00:07:54 +0000 (17:07 -0700)
commit5c6d7ff3e643d0fb4b46d81a3a4e6edaba779edd
treea56e015dde1660d103d95a8aa457cad1668b5774
parentf001c92436b4a66eb7687286325ced7f10c9f917
don't attempt to normalize the rotation vector

indeed, by construction of the rotation matrix, it is
guaranteed to have a length of 1.

moreover, the normalization code was missing a square-root,
fortunatelly, since the length is 1, this didn't cause any
damage (since sqrt(1) = 1).

Change-Id: I9facd668caaf5bb3bfccb139ab872f2bb2066365
services/sensorservice/RotationVectorSensor.cpp