rust/hwphysics/src/common.rs
changeset 15388 701ad89a9f2a
parent 15386 52844baced17
equal deleted inserted replaced
15387:6ad92b6ac43c 15388: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;