add Time*i64

This commit is contained in:
Quaternions 2024-09-18 11:33:08 -07:00
parent 5790863111
commit 43e1f8a173

View File

@ -122,7 +122,13 @@ impl std::ops::Div<i64> for Time{
Time(self.0/rhs) Time(self.0/rhs)
} }
} }
impl std::ops::Mul<i64> for Time{
type Output=Time;
#[inline]
fn mul(self,rhs:i64)->Self::Output{
Time(self.0*rhs)
}
}
impl core::ops::Mul<Time> for Planar64{ impl core::ops::Mul<Time> for Planar64{
type Output=Ratio<Fixed<2,64>,Planar64>; type Output=Ratio<Fixed<2,64>,Planar64>;
fn mul(self,rhs:Time)->Self::Output{ fn mul(self,rhs:Time)->Self::Output{