![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qglobal.h>#include <QtCore/qalgorithms.h>#include <QtCore/qnumeric.h>#include <cmath>Go to the source code of this file.
Classes | |
| struct | QtPrivate::QHypotType< R, F > |
| class | QtPrivate::QHypotHelper< T > |
Namespaces | |
| namespace | QtPrivate |
Macros | |
| #define | QT_SINE_TABLE_SIZE 256 |
| #define | M_E (2.7182818284590452354) |
| #define | M_LOG2E (1.4426950408889634074) |
| #define | M_LOG10E (0.43429448190325182765) |
| #define | M_LN2 (0.69314718055994530942) |
| #define | M_LN10 (2.30258509299404568402) |
| #define | M_PI (3.14159265358979323846) |
| #define | M_PI_2 (1.57079632679489661923) |
| #define | M_PI_4 (0.78539816339744830962) |
| #define | M_1_PI (0.31830988618379067154) |
| #define | M_2_PI (0.63661977236758134308) |
| #define | M_2_SQRTPI (1.12837916709551257390) |
| #define | M_SQRT2 (1.41421356237309504880) |
| #define | M_SQRT1_2 (0.70710678118654752440) |
Functions | |
| template<typename T> | |
| int | qCeil (T vv) |
| template<typename T> | |
| int | qFloor (T vv) |
| template<typename T> | |
| auto | qFabs (T vv) |
| template<typename T> | |
| auto | qSin (T vv) |
| template<typename T> | |
| auto | qCos (T vv) |
| template<typename T> | |
| auto | qTan (T vv) |
| template<typename T> | |
| auto | qAcos (T vv) |
| template<typename T> | |
| auto | qAsin (T vv) |
| template<typename T> | |
| auto | qAtan (T vv) |
| template<typename T1, typename T2> | |
| auto | qAtan2 (T1 yy, T2 xx) |
| template<typename T> | |
| auto | qSqrt (T vv) |
| template<typename F, typename ... Fs> | |
| auto | qHypot (F firstfirst, Fs... rest) |
| template<typename Tx, typename Ty> | |
| auto | qHypot (Tx xx, Ty yy) |
| template<typename T> | |
| auto | qLn (T vv) |
| template<typename T> | |
| auto | qExp (T vv) |
| template<typename T1, typename T2> | |
| auto | qPow (T1 xx, T2 yy) |
| qreal | qFastSin (qreal xx) |
| qreal | qFastCos (qreal xx) |
| constexpr float | qDegreesToRadians (float degrees) |
| constexpr double | qDegreesToRadians (double degrees) |
| constexpr long double | qDegreesToRadians (long double degrees) |
| template<typename T, std::enable_if_t< std::is_integral_v< T >, bool > = true> | |
| constexpr double | qDegreesToRadians (T degrees) |
| constexpr float | qRadiansToDegrees (float radians) |
| constexpr double | qRadiansToDegrees (double radians) |
| constexpr long double | qRadiansToDegrees (long double radians) |
| constexpr quint32 | qNextPowerOfTwo (quint32 vv) |
| constexpr quint64 | qNextPowerOfTwo (quint64 vv) |
| constexpr quint32 | qNextPowerOfTwo (qint32 vv) |
| constexpr quint64 | qNextPowerOfTwo (qint64 vv) |
| constexpr unsigned long | qNextPowerOfTwo (unsigned long vv) |
| constexpr unsigned long | qNextPowerOfTwo (long vv) |
Variables | |
| Q_CORE_EXPORT const qreal | qt_sine_table [QT_SINE_TABLE_SIZE] |
| auto qAtan2 | ( | T1 | y, |
| T2 | x ) |
|
inlineconstexpr |
Definition at line 257 of file qmath.h.
Referenced by qDegreesToRadians().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 268 of file qmath.h.
References qDegreesToRadians().
| auto qHypot | ( | Tx | x, |
| Ty | y ) |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 278 of file qmath.h.
Referenced by QtGradientWidget::mouseMoveEvent(), and QtGradientWidget::mousePressEvent().
|
inlineconstexpr |
|
extern |