swift
Loading...
Searching...
No Matches
src
misc
math
constants.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2022 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_MISC_MATH_CONSTANTS_H
7
#define SWIFT_MISC_MATH_CONSTANTS_H
8
9
#include <numbers>
10
11
namespace
swift::misc::math
12
{
14
constexpr
double
c_pi
= std::numbers::pi;
15
17
constexpr
double
c_pihalf
=
c_pi
/ 2;
18
20
constexpr
double
c_pi2
=
c_pi
* 2;
21
22
}
// namespace swift::misc::math
23
24
#endif
// SWIFT_MISC_MATH_CONSTANTS_H
swift::misc::math::c_pi
constexpr double c_pi
PI.
Definition
constants.h:14
swift::misc::math::c_pihalf
constexpr double c_pihalf
PI / 2.
Definition
constants.h:17
swift::misc::math::c_pi2
constexpr double c_pi2
PI * 2.
Definition
constants.h:20
Generated on
for swift by
1.15.0