Files
o3de/Gems/EMotionFX/Code/MCore/Source/FastMath.cpp
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

25 lines
939 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "FastMath.h"
namespace MCore
{
const float Math::pi = 3.14159265358979323846f;
const float Math::twoPi = 6.28318530717958647692f;
const float Math::halfPi = 1.57079632679489661923f;
const float Math::invPi = 0.31830988618f;
const float Math::epsilon = 0.000001f;
const float Math::sqrt2 = 1.4142135623730950488016887242097f;
const float Math::halfSqrt2 = 0.70710678118654752440084436210485f;
const float Math::sqrt3 = 1.7320508075688772935274463415059f;
const float Math::halfSqrt3 = 0.86602540378443864676372317075294f;
const float Math::sqrtHalf = 0.7071067811865475244f;
} // namespace MCore