math_constants.h 589 B

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