strafe-project/fixed_wide/src/ratio.rs
2024-09-02 16:15:17 -07:00

11 lines
195 B
Rust

#[derive(Clone,Copy,Debug,Hash)]
pub struct Ratio<Num,Den>{
pub(crate)num:Num,
pub(crate)den:Den,
}
impl<Num,Den> Ratio<Num,Den>{
pub const fn new(num:Num,den:Den)->Self{
Self{num,den}
}
}