commit | 70bca4cc8a37c34ec5cdb0405b2e7e2c2779630d | [log] [tgz] |
---|---|---|
author | Jason Gerecke <killertofu@gmail.com> | Fri Mar 01 11:49:07 2013 -0800 |
committer | Jason Gerecke <killertofu@gmail.com> | Fri Mar 15 17:19:09 2013 -0700 |
tree | 72b215782f654ae8282482f94f322c7dd37433d6 | |
parent | c9e0cd2ac7b1df3e60f0ca8bab6a7240bade07d9 [diff] |
Properly rotate full [-pi, +pi] orientation range if available The code currently in place assumes that orientation has a range of [-pi/2, +pi/2] as may be found with a touch digitizer. However, when used with a digitzer that can report the full [-pi, +pi] range of orientations (e.g. a stylus) the calculations here are incorrect. This patch checks if the post-rotation value is out of range for the axis, and wraps it back around. Change-Id: I03a22f7bf9526a5d995df1a18430d6dd24c6d6ee