From e335fb7254ad6c2ce08eda0d092ea524a302c2e0 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Thu, 2 Aug 2012 07:18:35 +0100 Subject: Add static dotProduct methods to the QPoint(F) classes Change-Id: I66ac9433b74341a83569a60038ea2f7a025e81b1 Reviewed-by: Gunnar Sletta --- src/corelib/tools/qpoint.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/corelib/tools/qpoint.cpp') diff --git a/src/corelib/tools/qpoint.cpp b/src/corelib/tools/qpoint.cpp index b3dd918a35..784d96bf1c 100644 --- a/src/corelib/tools/qpoint.cpp +++ b/src/corelib/tools/qpoint.cpp @@ -222,6 +222,15 @@ QT_BEGIN_NAMESPACE \sa operator/=() */ +/*! + \fn static int QPoint::dotProduct(const QPoint &p1, const QPoint &p2) + \since 5.1 + + \snippet code/src_corelib_tools_qpoint.cpp 16 + + Returns the dot product of \a p1 and \a p2. +*/ + /*! \fn bool operator==(const QPoint &p1, const QPoint &p2) \relates QPoint @@ -711,6 +720,15 @@ QDebug operator<<(QDebug d, const QPointF &p) \sa QPointF() */ +/*! + \fn static qreal QPointF::dotProduct(const QPointF &p1, const QPointF &p2) + \since 5.1 + + \snippet code/src_corelib_tools_qpoint.cpp 17 + + Returns the dot product of \a p1 and \a p2. +*/ + /*! \fn bool operator==(const QPointF &p1, const QPointF &p2) \relates QPointF -- cgit v1.2.3