Edit

kc3-lang/angle/src/common/base/anglebase/numerics/math_constants.h

Branch :

  • Show log

    Commit

  • Author : Nicolas Capens
    Date : 2022-12-01 14:05:07
    Hash : c991eb22
    Message : Move the anglebase folder up a level This code originates from Chromium's base/ directory so it doesn't have to be under a third-party folder. Bug: b/260093525 Change-Id: I0bf6950095c685f36c5c237093980a64cf6e74f0 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4068339 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Nicolas Capens <nicolascapens@google.com>

  • src/common/base/anglebase/numerics/math_constants.h
  • // Copyright 2017 The Chromium Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    
    #ifndef BASE_NUMERICS_MATH_CONSTANTS_H_
    #define BASE_NUMERICS_MATH_CONSTANTS_H_
    
    namespace base
    {
    
    constexpr double kPiDouble = 3.14159265358979323846;
    constexpr float kPiFloat   = 3.14159265358979323846f;
    
    // The mean acceleration due to gravity on Earth in m/s^2.
    constexpr double kMeanGravityDouble = 9.80665;
    constexpr float kMeanGravityFloat   = 9.80665f;
    
    }  // namespace base
    
    #endif  // BASE_NUMERICS_MATH_CONSTANTS_H_