From eccae096a64db6958076aad0dc5baa7cdd1d56ef Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 31 Aug 2012 11:53:34 +0200 Subject: 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 (cherry picked from qtbase/9aa67cf0c48ff8e9e73fc19c4dcd950961b5ad54) Reviewed-by: Thiago Macieira Reviewed-by: Oswald Buddenhagen --- src/corelib/kernel/qmath.qdoc | 6 +++--- 1 file 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 \sa qAtan() -- cgit v0.12