/* * 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