rust/hwphysics/src/common.rs
changeset 15383 701ad89a9f2a
parent 15381 52844baced17
child 15780 f4b563a9ac5e
equal deleted inserted replaced
15382:6ad92b6ac43c 15383:701ad89a9f2a
    18         self.0
    18         self.0
    19     }
    19     }
    20 
    20 
    21     #[inline]
    21     #[inline]
    22     pub fn to_fixed(self) -> FPNum {
    22     pub fn to_fixed(self) -> FPNum {
    23         FPNum::new(self.0 as i32, 1000)
    23         FPNum::new(self.0 as i32, 1)
    24     }
    24     }
    25 }
    25 }
    26 
    26 
    27 impl Add for Millis {
    27 impl Add for Millis {
    28     type Output = Self;
    28     type Output = Self;