Constants v0.1.0
E
pub const E: float64 = 2.718281828459045;
Euler's number, the base of the natural logarithm, rounded to the nearest float64.
Ln2
pub const Ln2: float64 = 0.6931471805599453;
The natural logarithm of two, rounded to the nearest float64.
Log2E
pub const Log2E: float64 = 1.4426950408889634;
The base-two logarithm of E, rounded to the nearest float64.
Ln10
pub const Ln10: float64 = 2.302585092994046;
The natural logarithm of ten, rounded to the nearest float64.
Log10E
pub const Log10E: float64 = 0.4342944819032518;
The base-ten logarithm of E, rounded to the nearest float64.
Pi
pub const Pi: float64 = 3.141592653589793;
The ratio of a circle's circumference to its diameter, rounded to the nearest float64.
Tau
pub const Tau: float64 = 6.283185307179586;
One full turn in radians, equal to 2 * Pi and rounded to the nearest float64.
HalfPi
pub const HalfPi: float64 = 1.5707963267948966;
One quarter turn in radians, equal to Pi / 2 and rounded to the nearest float64.
QuarterPi
pub const QuarterPi: float64 = 0.7853981633974483;
One eighth turn in radians, equal to Pi / 4 and rounded to the nearest float64.
InvPi
pub const InvPi: float64 = 0.3183098861837907;
The reciprocal of Pi, rounded to the nearest float64.
InvTau
pub const InvTau: float64 = 0.15915494309189535;
The reciprocal of Tau, rounded to the nearest float64.
Sqrt2
pub const Sqrt2: float64 = 1.4142135623730951;
The square root of two, rounded to the nearest float64.
InvSqrt2
pub const InvSqrt2: float64 = 0.7071067811865476;
The reciprocal of Sqrt2, rounded to the nearest float64.
RadPerDeg
pub const RadPerDeg: float64 = 0.017453292519943295;
Radians per degree, equal to Pi / 180 and rounded to the nearest float64.
DegPerRad
pub const DegPerRad: float64 = 57.29577951308232;
Degrees per radian, equal to 180 / Pi and rounded to the nearest float64.