OpenSiv3D  v0.6.5
C++20 framework for creative coding
MathConstants.hpp File Reference
#include <limits>
#include "Concepts.hpp"
#include "detail/MathConstants.ipp"

Namespaces

 s3d
 
 s3d::Math
 
 s3d::Math::Constants
 
 s3d::Literals
 
 s3d::Literals::MathLiterals
 

Functions

constexpr double s3d::Literals::MathLiterals::operator""_pi (long double x) noexcept
 
constexpr double s3d::Literals::MathLiterals::operator""_pi (unsigned long long x) noexcept
 
constexpr float s3d::Literals::MathLiterals::operator""_piF (long double x) noexcept
 
constexpr float s3d::Literals::MathLiterals::operator""_piF (unsigned long long x) noexcept
 
constexpr double s3d::Literals::MathLiterals::operator""_tau (long double x) noexcept
 
constexpr double s3d::Literals::MathLiterals::operator""_tau (unsigned long long x) noexcept
 
constexpr float s3d::Literals::MathLiterals::operator""_tauF (long double x) noexcept
 
constexpr float s3d::Literals::MathLiterals::operator""_tauF (unsigned long long x) noexcept
 
constexpr double s3d::Literals::MathLiterals::operator""_deg (long double deg) noexcept
 
constexpr double s3d::Literals::MathLiterals::operator""_deg (unsigned long long deg) noexcept
 
constexpr float s3d::Literals::MathLiterals::operator""_degF (long double deg) noexcept
 
constexpr float s3d::Literals::MathLiterals::operator""_degF (unsigned long long deg) noexcept
 

Variables

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::E_v = Float(2.718281828459045235360287471352662498L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Log2E_v = Float(1.442695040888963407359924681001892137L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Log10E_v = Float(0.434294481903251827651128918916605082L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Pi_v = Float(3.141592653589793238462643383279502884L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::QuarterPi_v = Float(0.785398163397448309615660845819875721L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::OneThirdPi_v = Float(1.047197551196597746154214461093167628L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::HalfPi_v = Float(1.570796326794896619231321691639751442L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::TwoPi_v = Float(6.283185307179586476925286766559005768L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Tau_v = Float(6.283185307179586476925286766559005768L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvTwoPi_v = Float(0.159154943091895335768883763372514362L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvPi_v = Float(0.318309886183790671537767526745028724L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvSqrtPi_v = Float(0.564189583547756286948079451560772586L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Ln2_v = Float(0.693147180559945309417232121458176568L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Ln10_v = Float(2.302585092994045684017991454684364208L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Sqrt2_v = Float(1.414213562373095048801688724209698078L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Sqrt3_v = Float(1.732050807568877293527446341505872366L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvSqrt2_v = Float(0.707106781186547524400844362104849039L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvSqrt3_v = Float(0.577350269189625764509148780501957456L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::EGamma_v = Float(0.577215664901532860606512090082402431L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Phi_v = Float(1.618033988749894848204586834365638117L)
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::QNaN_v = std::numeric_limits<Float>::quiet_NaN()
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::NaN_v = std::numeric_limits<Float>::signaling_NaN()
 
constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Inf_v = std::numeric_limits<Float>::infinity()
 
constexpr float s3d::Math::Constants::PiF = Pi_v<float>
 (float) π More...
 
constexpr float s3d::Math::Constants::QuarterPiF = QuarterPi_v<float>
 (float) π/4 More...
 
constexpr float s3d::Math::Constants::OneThirdPiF = OneThirdPi_v<float>
 (float) π/3 More...
 
constexpr float s3d::Math::Constants::HalfPiF = HalfPi_v<float>
 (float) π/2 More...
 
constexpr float s3d::Math::Constants::TwoPiF = TwoPi_v<float>
 (float) 2π More...
 
constexpr float s3d::Math::Constants::TauF = Tau_v<float>
 (float) τ (2π) More...
 
constexpr float s3d::Math::Constants::InvTwoPiF = InvTwoPi_v<float>
 (float) 1/(2π) More...
 
constexpr float s3d::Math::Constants::InvPiF = InvPi_v<float>
 (float) 1/π More...
 
constexpr float s3d::Math::Constants::InvSqrtPiF = InvSqrtPi_v<float>
 (float) 1/√π More...
 
constexpr float s3d::Math::Constants::QNaNF = QNaN_v<float>
 Quiet NaN. More...
 
constexpr float s3d::Math::Constants::NaNF = NaN_v<float>
 Signaling NaN. More...
 
constexpr float s3d::Math::Constants::InfF = Inf_v<float>
 +Inf More...
 
constexpr double s3d::Math::Constants::E = E_v<double>
 自然対数の底 | Euler's number More...
 
constexpr double s3d::Math::Constants::Log2E = Log2E_v<double>
 2 を底とする e の対数 More...
 
constexpr double s3d::Math::Constants::Log10E = Log10E_v<double>
 10 を底とする e の対数 More...
 
constexpr double s3d::Math::Constants::Pi = Pi_v<double>
 π. More...
 
constexpr double s3d::Math::Constants::QuarterPi = QuarterPi_v<double>
 π/4. More...
 
constexpr double s3d::Math::Constants::OneThirdPi = OneThirdPi_v<double>
 π/3. More...
 
constexpr double s3d::Math::Constants::HalfPi = HalfPi_v<double>
 π/2. More...
 
constexpr double s3d::Math::Constants::TwoPi = TwoPi_v<double>
 More...
 
constexpr double s3d::Math::Constants::Tau = Tau_v<double>
 τ (2π) More...
 
constexpr double s3d::Math::Constants::InvTwoPi = InvTwoPi_v<double>
 1/(2π) More...
 
constexpr double s3d::Math::Constants::InvPi = InvPi_v<double>
 1/π More...
 
constexpr double s3d::Math::Constants::InvSqrtPi = InvSqrtPi_v<double>
 1/√π More...
 
constexpr double s3d::Math::Constants::Ln2 = Ln2_v<double>
 2 の自然対数 More...
 
constexpr double s3d::Math::Constants::Ln10 = Ln10_v<double>
 10 の自然対数 More...
 
constexpr double s3d::Math::Constants::Sqrt2 = Sqrt2_v<double>
 √2 More...
 
constexpr double s3d::Math::Constants::Sqrt3 = Sqrt3_v<double>
 √3 More...
 
constexpr double s3d::Math::Constants::InvSqrt2 = InvSqrt2_v<double>
 1/√2 More...
 
constexpr double s3d::Math::Constants::InvSqrt3 = InvSqrt3_v<double>
 1/√3 More...
 
constexpr double s3d::Math::Constants::EGamma = EGamma_v<double>
 オイラーの定数 More...
 
constexpr double s3d::Math::Constants::Phi = Phi_v<double>
 黄金数 (φ) | Golden ratio More...
 
constexpr double s3d::Math::Constants::QNaN = QNaN_v<double>
 Quiet NaN. More...
 
constexpr double s3d::Math::Constants::NaN = NaN_v<double>
 Signaling NaN. More...
 
constexpr double s3d::Math::Constants::Inf = Inf_v<double>
 +Inf More...