user avatar
Example: use atan2 for simpler angle calculations
Edward Welbourne authored
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: default avatarAlex Blasche <alexander.blasche@qt.io>
993ab0bd