summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-31 09:53:34 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-05 19:25:32 (GMT)
commiteccae096a64db6958076aad0dc5baa7cdd1d56ef (patch)
treefd3be0b49c44a4c3aee12a417b2f1ac0ec3d79ce
parentcde852d4d4bde80ed7db880be363bf5cd95198f6 (diff)
downloadQt-eccae096a64db6958076aad0dc5baa7cdd1d56ef.zip
Qt-eccae096a64db6958076aad0dc5baa7cdd1d56ef.tar.gz
Qt-eccae096a64db6958076aad0dc5baa7cdd1d56ef.tar.bz2
Fix the name of the arguments of qAtan2 to match std::atan2
There is no change in functionality, just swapping of the names x and y. The std::atan2 function uses (y, x) in that order, so we should too. Task-number: QTBUG-27090 Change-Id: I7d4597a6c6909f574c517033f5d49fe17b7a7ead Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> (cherry picked from qtbase/9aa67cf0c48ff8e9e73fc19c4dcd950961b5ad54) Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r--src/corelib/kernel/qmath.qdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/kernel/qmath.qdoc b/src/corelib/kernel/qmath.qdoc
index 345d35e..4d9897b 100644
--- a/src/corelib/kernel/qmath.qdoc
+++ b/src/corelib/kernel/qmath.qdoc
@@ -112,9 +112,9 @@
*/
/*!
- \fn qreal qAtan2(qreal x, qreal y)
- Returns the arctangent of a point specified by the coordinates \a x and \a y.
- This function will return the angle and its direction.
+ \fn qreal qAtan2(qreal y, qreal x)
+ Returns the arctangent of a point specified by the coordinates \a y and \a x.
+ This function will return the angle (argument) of that point.
\relates <QtCore/qmath.h>
\sa qAtan()