Trait kidou::orbit::calc::integrate::constants::conversion::Conversions [−][src]
pub trait Conversions {
type Output;
fn to_km_per_s(&self) -> Self::Output;
fn to_kpc_per_myr(&self) -> Self::Output;
fn to_kpc_per_myr_2(&self) -> Self::Output;
fn to_seconds(&self) -> Self::Output;
fn to_kpc(&self) -> Self::Output;
}
Expand description
Adds conversion methods to float types
Associated Types
Required methods
fn to_km_per_s(&self) -> Self::Output
fn to_km_per_s(&self) -> Self::Output
Convert $ \text{kpc} \, \text{Myr}^{-1} $ to $ \text{km} \, \text{s}^{-1} $
fn to_kpc_per_myr(&self) -> Self::Output
fn to_kpc_per_myr(&self) -> Self::Output
Convert $ \text{km} \, \text{s}^{-1} $ to $ \text{kpc} \, \text{Myr}^{-1} $
fn to_kpc_per_myr_2(&self) -> Self::Output
fn to_kpc_per_myr_2(&self) -> Self::Output
Convert $ 100 \; \text{km}^2 \, \text{s}^{-2} $ to $ \text{kpc}^2 \, \text{Myr}^{-2} $
fn to_seconds(&self) -> Self::Output
fn to_seconds(&self) -> Self::Output
Convert $ \text{Myr} $ to seconds