Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_kernel_qmath.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 Laszlo Papp <lpapp@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5float degrees = 180.0f
6float radians = qDegreesToRadians(degrees)
8
9
10
11double degrees = 180.0
12double radians = qDegreesToRadians(degrees)
14
15
16
17float radians = float(M_PI)
18float degrees = qRadiansToDegrees(radians)
20
21
22
23double radians = M_PI
24double degrees = qRadiansToDegrees(radians)
26
constexpr float qRadiansToDegrees(float radians)
Definition qmath.h:281
#define M_PI
Definition qmath.h:209
constexpr float qDegreesToRadians(float degrees)
Definition qmath.h:260