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

A float type. Should be the same as Self.

Required methods

Convert $ \text{kpc} \, \text{Myr}^{-1} $ to $ \text{km} \, \text{s}^{-1} $

Convert $ \text{km} \, \text{s}^{-1} $ to $ \text{kpc} \, \text{Myr}^{-1} $

Convert $ 100 \; \text{km}^2 \, \text{s}^{-2} $ to $ \text{kpc}^2 \, \text{Myr}^{-2} $

Convert $ \text{Myr} $ to seconds

Convert $ \text{km} $ to $ \text{kpc} $

Implementors