summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-01-11 13:33:05 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2017-01-16 19:34:05 +0000
commit993ab0bd1d573f0bbab6e3fcd08d25bc4f32a3d9 (patch)
treec531adf1f61cba80c35ba0601e91ed3fc41c7b84 /src
parent19d7ab8d277500e88baf3b23edd62dee4d5d9c46 (diff)
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 'src')
0 files changed, 0 insertions, 0 deletions