| 1 |
// Copyright 2017 The Chromium Authors |
| 2 |
// Use of this source code is governed by a BSD-style license that can be |
| 3 |
// found in the LICENSE file. |
| 4 |
|
| 5 |
#ifndef BASE_NUMERICS_MATH_CONSTANTS_H_ |
| 6 |
#define BASE_NUMERICS_MATH_CONSTANTS_H_ |
| 7 |
|
| 8 |
namespace chromium { |
| 9 |
namespace base { |
| 10 |
|
| 11 |
constexpr double kPiDouble = 3.14159265358979323846; |
| 12 |
constexpr float kPiFloat = 3.14159265358979323846f; |
| 13 |
|
| 14 |
// The mean acceleration due to gravity on Earth in m/s^2. |
| 15 |
constexpr double kMeanGravityDouble = 9.80665; |
| 16 |
constexpr float kMeanGravityFloat = 9.80665f; |
| 17 |
|
| 18 |
} // namespace base |
| 19 |
} // namespace chromium |
| 20 |
|
| 21 |
#endif // BASE_NUMERICS_MATH_CONSTANTS_H_ |