OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Math::Constants Namespace Reference

Variables

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

Variable Documentation

◆ E

constexpr double s3d::Math::Constants::E = E_v<double>
inlineconstexpr

自然対数の底 | Euler's number

◆ E_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::E_v = Float(2.718281828459045235360287471352662498L)
inlineconstexpr

◆ EGamma

constexpr double s3d::Math::Constants::EGamma = EGamma_v<double>
inlineconstexpr

オイラーの定数

◆ EGamma_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::EGamma_v = Float(0.577215664901532860606512090082402431L)
inlineconstexpr

◆ HalfPi

constexpr double s3d::Math::Constants::HalfPi = HalfPi_v<double>
inlineconstexpr

π/2.

◆ HalfPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::HalfPi_v = Float(1.570796326794896619231321691639751442L)
inlineconstexpr

◆ HalfPiF

constexpr float s3d::Math::Constants::HalfPiF = HalfPi_v<float>
inlineconstexpr

(float) π/2

◆ Inf

constexpr double s3d::Math::Constants::Inf = Inf_v<double>
inlineconstexpr

+Inf

◆ Inf_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Inf_v = std::numeric_limits<Float>::infinity()
inlineconstexpr

◆ InfF

constexpr float s3d::Math::Constants::InfF = Inf_v<float>
inlineconstexpr

+Inf

◆ InvPi

constexpr double s3d::Math::Constants::InvPi = InvPi_v<double>
inlineconstexpr

1/π

◆ InvPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvPi_v = Float(0.318309886183790671537767526745028724L)
inlineconstexpr

◆ InvPiF

constexpr float s3d::Math::Constants::InvPiF = InvPi_v<float>
inlineconstexpr

(float) 1/π

◆ InvSqrt2

constexpr double s3d::Math::Constants::InvSqrt2 = InvSqrt2_v<double>
inlineconstexpr

1/√2

◆ InvSqrt2_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvSqrt2_v = Float(0.707106781186547524400844362104849039L)
inlineconstexpr

◆ InvSqrt3

constexpr double s3d::Math::Constants::InvSqrt3 = InvSqrt3_v<double>
inlineconstexpr

1/√3

◆ InvSqrt3_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvSqrt3_v = Float(0.577350269189625764509148780501957456L)
inlineconstexpr

◆ InvSqrtPi

constexpr double s3d::Math::Constants::InvSqrtPi = InvSqrtPi_v<double>
inlineconstexpr

1/√π

◆ InvSqrtPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvSqrtPi_v = Float(0.564189583547756286948079451560772586L)
inlineconstexpr

◆ InvSqrtPiF

constexpr float s3d::Math::Constants::InvSqrtPiF = InvSqrtPi_v<float>
inlineconstexpr

(float) 1/√π

◆ InvTwoPi

constexpr double s3d::Math::Constants::InvTwoPi = InvTwoPi_v<double>
inlineconstexpr

1/(2π)

◆ InvTwoPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::InvTwoPi_v = Float(0.159154943091895335768883763372514362L)
inlineconstexpr

◆ InvTwoPiF

constexpr float s3d::Math::Constants::InvTwoPiF = InvTwoPi_v<float>
inlineconstexpr

(float) 1/(2π)

◆ Ln10

constexpr double s3d::Math::Constants::Ln10 = Ln10_v<double>
inlineconstexpr

10 の自然対数

◆ Ln10_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Ln10_v = Float(2.302585092994045684017991454684364208L)
inlineconstexpr

◆ Ln2

constexpr double s3d::Math::Constants::Ln2 = Ln2_v<double>
inlineconstexpr

2 の自然対数

◆ Ln2_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Ln2_v = Float(0.693147180559945309417232121458176568L)
inlineconstexpr

◆ Log10E

constexpr double s3d::Math::Constants::Log10E = Log10E_v<double>
inlineconstexpr

10 を底とする e の対数

◆ Log10E_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Log10E_v = Float(0.434294481903251827651128918916605082L)
inlineconstexpr

◆ Log2E

constexpr double s3d::Math::Constants::Log2E = Log2E_v<double>
inlineconstexpr

2 を底とする e の対数

◆ Log2E_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Log2E_v = Float(1.442695040888963407359924681001892137L)
inlineconstexpr

◆ NaN

constexpr double s3d::Math::Constants::NaN = NaN_v<double>
inlineconstexpr

Signaling NaN.

◆ NaN_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::NaN_v = std::numeric_limits<Float>::signaling_NaN()
inlineconstexpr

◆ NaNF

constexpr float s3d::Math::Constants::NaNF = NaN_v<float>
inlineconstexpr

Signaling NaN.

◆ OneThirdPi

constexpr double s3d::Math::Constants::OneThirdPi = OneThirdPi_v<double>
inlineconstexpr

π/3.

◆ OneThirdPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::OneThirdPi_v = Float(1.047197551196597746154214461093167628L)
inlineconstexpr

◆ OneThirdPiF

constexpr float s3d::Math::Constants::OneThirdPiF = OneThirdPi_v<float>
inlineconstexpr

(float) π/3

◆ Phi

constexpr double s3d::Math::Constants::Phi = Phi_v<double>
inlineconstexpr

黄金数 (φ) | Golden ratio

◆ Phi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Phi_v = Float(1.618033988749894848204586834365638117L)
inlineconstexpr

◆ Pi

constexpr double s3d::Math::Constants::Pi = Pi_v<double>
inlineconstexpr

π.

◆ Pi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Pi_v = Float(3.141592653589793238462643383279502884L)
inlineconstexpr

◆ PiF

constexpr float s3d::Math::Constants::PiF = Pi_v<float>
inlineconstexpr

(float) π

◆ QNaN

constexpr double s3d::Math::Constants::QNaN = QNaN_v<double>
inlineconstexpr

Quiet NaN.

◆ QNaN_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::QNaN_v = std::numeric_limits<Float>::quiet_NaN()
inlineconstexpr

◆ QNaNF

constexpr float s3d::Math::Constants::QNaNF = QNaN_v<float>
inlineconstexpr

Quiet NaN.

◆ QuarterPi

constexpr double s3d::Math::Constants::QuarterPi = QuarterPi_v<double>
inlineconstexpr

π/4.

◆ QuarterPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::QuarterPi_v = Float(0.785398163397448309615660845819875721L)
inlineconstexpr

◆ QuarterPiF

constexpr float s3d::Math::Constants::QuarterPiF = QuarterPi_v<float>
inlineconstexpr

(float) π/4

◆ Sqrt2

constexpr double s3d::Math::Constants::Sqrt2 = Sqrt2_v<double>
inlineconstexpr

√2

◆ Sqrt2_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Sqrt2_v = Float(1.414213562373095048801688724209698078L)
inlineconstexpr

◆ Sqrt3

constexpr double s3d::Math::Constants::Sqrt3 = Sqrt3_v<double>
inlineconstexpr

√3

◆ Sqrt3_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Sqrt3_v = Float(1.732050807568877293527446341505872366L)
inlineconstexpr

◆ Tau

constexpr double s3d::Math::Constants::Tau = Tau_v<double>
inlineconstexpr

τ (2π)

◆ Tau_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::Tau_v = Float(6.283185307179586476925286766559005768L)
inlineconstexpr

◆ TauF

constexpr float s3d::Math::Constants::TauF = Tau_v<float>
inlineconstexpr

(float) τ (2π)

◆ TwoPi

constexpr double s3d::Math::Constants::TwoPi = TwoPi_v<double>
inlineconstexpr

◆ TwoPi_v

constexpr SIV3D_CONCEPT_FLOATING_POINT Float s3d::Math::Constants::TwoPi_v = Float(6.283185307179586476925286766559005768L)
inlineconstexpr

◆ TwoPiF

constexpr float s3d::Math::Constants::TwoPiF = TwoPi_v<float>
inlineconstexpr

(float) 2π