forky_core 0.2.0

Rust Utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub const TAU: f64 = std::f64::consts::TAU;
pub const QUARTER_TAU: f64 = TAU * 0.25;
pub const HALF_TAU: f64 = TAU * 0.5;
pub const THREE_QUARTER_TAU: f64 = TAU * 0.75;

pub const PI: f64 = std::f64::consts::PI;



pub const DEG2RAD: f64 = PI / 180.;
pub const RAD2DEG: f64 = 180. / PI;
pub const RAD2HOURS: f64 = 12. / PI;
pub const HOURS2RAD: f64 = PI / 12.;
pub const DEG2HOURS: f64 = 1. / 15.;
pub const HOURS2DEG: f64 = 15.;