swift
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
namespace
swift::misc::math
10
{
12
constexpr
double
c_pi
= 3.1415926535897932;
13
15
constexpr
double
c_pihalf
=
c_pi
/ 2;
16
18
constexpr
double
c_pi2
=
c_pi
* 2;
19
20
}
// namespace swift::misc::math
21
22
#endif
// SWIFT_MISC_MATH_CONSTANTS_H
swift::misc::math::c_pi
constexpr double c_pi
PI.
Definition:
constants.h:12
swift::misc::math::c_pihalf
constexpr double c_pihalf
PI / 2.
Definition:
constants.h:15
swift::misc::math::c_pi2
constexpr double c_pi2
PI * 2.
Definition:
constants.h:18
Generated on Mon Mar 24 2025 16:42:18 for swift by
1.9.1