29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
/*
|
|
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
|
* its licensors.
|
|
*
|
|
* For complete copyright and license terms please see the LICENSE at the root of this
|
|
* distribution (the "License"). All use of this software is governed by the License,
|
|
* or, if provided, by the license below or the license accompanying this file. Do not
|
|
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
*
|
|
*/
|
|
|
|
#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
|