File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ pub mod consts {
104
104
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
105
105
pub const FRAC_2_SQRT_PI : f32 = 1.12837916709551257389615890312154517_f32 ;
106
106
107
+ /// 2π, the ratio of a circle's circumference to its radius.
108
+ pub const TAU : f32 = 6.28318530717958647692528676655900577_f32 ;
109
+
107
110
/// sqrt(2)
108
111
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
109
112
pub const SQRT_2 : f32 = 1.41421356237309504880168872420969808_f32 ;
Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ pub mod consts {
100
100
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
101
101
pub const FRAC_2_PI : f64 = 0.636619772367581343075535053490057448_f64 ;
102
102
103
+ /// 2π, the ratio of a circle's circumference to its radius.
104
+ pub const TAU : f64 = 6.28318530717958647692528676655900577_f64 ;
105
+
103
106
/// 2/sqrt(π)
104
107
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
105
108
pub const FRAC_2_SQRT_PI : f64 = 1.12837916709551257389615890312154517_f64 ;
You can’t perform that action at this time.
0 commit comments