1 2 3 4 5 6 7 8 9 10 11 12 13
use euclid::Length; /// Unit type for use in euclid geometric types to represent kilometers #[derive(Clone, Copy, Default)] pub struct Kilometers; impl Kilometers { pub fn new(km: f32) -> Length<f32, Kilometers> { Length::new(km) } } /// Unit type for use in euclid geometric types to represent pixel measurements pub(crate) struct Pixels;