diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-01-11 13:33:05 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-01-16 19:34:05 +0000 |
commit | 993ab0bd1d573f0bbab6e3fcd08d25bc4f32a3d9 (patch) | |
tree | c531adf1f61cba80c35ba0601e91ed3fc41c7b84 /examples/sensors/maze/LabyrinthSquare.qml | |
parent | 19d7ab8d277500e88baf3b23edd62dee4d5d9c46 (diff) | |
download | qtsensors-993ab0bd1d573f0bbab6e3fcd08d25bc4f32a3d9.tar.gz |
Example: use atan2 for simpler angle calculations
This replaces calls to sqrt, acos and asin (plus some arithmetic and
fix-up) with a single call to atan2; it also avoids dividing by a
potentially zero length.
Change-Id: I694fa9e3e2bcdbcf1a4eb4c5d428e2c53ea21732
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/sensors/maze/LabyrinthSquare.qml')
0 files changed, 0 insertions, 0 deletions