Remove unnecessary dereference-references
This commit is contained in:
parent
e8c6e78cf4
commit
3869c24ec8
3 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue