astrograph/
consts.rs

1use crate::Float;
2
3/// Gravitational constant in terms of light seconds^3 per jupiter mass per hour^2
4pub const GRAVITATIONAL_CONSTANT: Float = 0.0609_109;
5
6/// Constants for the [`crate::Float`] type alias.
7#[cfg(any(target_arch = "wasm32", not(feature = "f64")))]
8pub mod float {
9    pub use core::f32::consts::*;
10}
11
12/// Constants for the [`crate::Float`] type alias.
13#[cfg(all(feature = "f64", not(target_arch = "wasm32")))]
14pub mod float {
15    pub use core::f64::consts::*;
16}