fix Time from Planar64

This commit is contained in:
Quaternions 2024-09-18 11:32:52 -07:00
parent c48b9d63bd
commit 5790863111

View File

@ -49,7 +49,7 @@ impl Time{
impl From<Planar64> for Time{ impl From<Planar64> for Time{
#[inline] #[inline]
fn from(value:Planar64)->Self{ fn from(value:Planar64)->Self{
Time(((value*Planar64::raw(1_000_000_000))>>32).fix_1().to_raw()) Time((value*Planar64::raw(1_000_000_000)).fix_1().to_raw())
} }
} }
impl<Num,Den,N1,T1> From<Ratio<Num,Den>> for Time impl<Num,Den,N1,T1> From<Ratio<Num,Den>> for Time