Remove unnecessary dereference-references

This commit is contained in:
Brendan Zabarauskas 2013-03-29 10:42:54 +11:00
parent e8c6e78cf4
commit 3869c24ec8
3 changed files with 3 additions and 3 deletions

View file

@ -281,7 +281,7 @@ impl<T:Copy + Float + Add<T,T> + Sub<T,T> + Mul<T,T> + Div<T,T> + Neg<T>> Mutabl
} }
fn lerp_self(&mut self, other: &Vec2<T>, amount: T) { fn lerp_self(&mut self, other: &Vec2<T>, amount: T) {
self.add_self_v(&other.sub_v(&*self).mul_t(amount)); self.add_self_v(&other.sub_v(self).mul_t(amount));
} }
} }

View file

@ -313,7 +313,7 @@ impl<T:Copy + Float + Add<T,T> + Sub<T,T> + Mul<T,T> + Div<T,T> + Neg<T>> Mutabl
} }
fn lerp_self(&mut self, other: &Vec3<T>, amount: T) { fn lerp_self(&mut self, other: &Vec3<T>, amount: T) {
self.add_self_v(&other.sub_v(&*self).mul_t(amount)); self.add_self_v(&other.sub_v(self).mul_t(amount));
} }
} }

View file

@ -311,7 +311,7 @@ impl<T: Copy + Float + Add<T,T> + Sub<T,T> + Mul<T,T> + Div<T,T> + Neg<T>> Mutab
} }
fn lerp_self(&mut self, other: &Vec4<T>, amount: T) { fn lerp_self(&mut self, other: &Vec4<T>, amount: T) {
self.add_self_v(&other.sub_v(&*self).mul_t(amount)); self.add_self_v(&other.sub_v(self).mul_t(amount));
} }
} }