Remove Angle % Angle::Unitless

This commit is contained in:
Brendan Zabarauskas 2015-12-14 04:42:02 +11:00
parent db35af6ae9
commit 519af35d71

View file

@ -68,7 +68,6 @@ pub trait Angle where
Self: Mul<<Self as Angle>::Unitless, Output = Self>,
Self: Div<Self, Output = <Self as Angle>::Unitless>,
Self: Div<<Self as Angle>::Unitless, Output = Self>,
Self: Rem<<Self as Angle>::Unitless, Output = Self>,
{
type Unitless: BaseFloat;
@ -187,9 +186,6 @@ macro_rules! impl_angle {
impl_binary_operator!(<S: BaseFloat> Div<S> for $Angle<S> {
fn div(lhs, scalar) -> $Angle<S> { $Angle::new(lhs.s / scalar) }
});
impl_binary_operator!(<S: BaseFloat> Rem<S> for $Angle<S> {
fn rem(lhs, scalar) -> $Angle<S> { $Angle::new(lhs.s % scalar) }
});
impl<S: BaseFloat> ApproxEq for $Angle<S> {
type Epsilon = S;