qt5base-lts/examples
Edward Welbourne 0b822c2209 Examples: use std::atan2 for simper angle calculations
Using std::atan2 gets the right answer directly from dy and dx,
without having to fix up quadrant as we needed to with acos (albeit we
have to negate dy in some cases, to match prior sense of angles).  In
the process, it avoids explicit division, which would be an error when
the line's length is zero.

Change-Id: Ia2923159d38834e08e6f15cbff6766ed419fa804
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2017-02-23 16:43:35 +00:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Fix compilation without sharedmemory 2017-01-05 08:38:33 +00:00
dbus Use qtConfig where appropriate 2017-01-27 10:38:46 +00:00
embedded Example: migrate flightinfo to QRegularExpression 2017-02-15 14:45:58 +00:00
gui Modernize rasterwindow/openglwindow examples to use requestUpdate() 2016-09-22 16:45:15 +00:00
network Merge remote-tracking branch 'origin/5.8' into dev 2017-01-25 20:06:06 +01:00
opengl Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-16 21:51:11 +01:00
qmake Unify license header usage. 2016-03-29 10:20:03 +00:00
qpa Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
qtconcurrent prune vestiges of DEPLOYMENT_PLUGIN 2016-12-23 13:25:41 +00:00
qtestlib Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
sql prune vestiges of DEPLOYMENT_PLUGIN 2016-12-23 13:25:41 +00:00
touch Examples: use std::atan2 for simper angle calculations 2017-02-23 16:43:35 +00:00
widgets Examples: use std::atan2 for simper angle calculations 2017-02-23 16:43:35 +00:00
xml Polish the XML bookmarks examples 2017-02-17 05:55:19 +00:00
examples.pro fix build of examples subdir with -no-gui 2016-10-10 16:59:19 +00:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.