Improved argument name
This commit is contained in:
parent
57fd8a5a41
commit
d8bfafa552
1 changed files with 7 additions and 7 deletions
|
@ -50,7 +50,7 @@ pub trait GeometricVector<T> {
|
||||||
pure fn length2() -> T;
|
pure fn length2() -> T;
|
||||||
pure fn length() -> T;
|
pure fn length() -> T;
|
||||||
pure fn normalize() -> self;
|
pure fn normalize() -> self;
|
||||||
pure fn lerp(other: &self, value: T) -> self;
|
pure fn lerp(other: &self, amount: T) -> self;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Vector2<T> {
|
pub trait Vector2<T> {
|
||||||
|
@ -175,8 +175,8 @@ pub impl<T:Copy Num Exp> Vec2<T>: GeometricVector<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pure fn lerp(other: &Vec2<T>, value: T) -> Vec2<T> {
|
pure fn lerp(other: &Vec2<T>, amount: T) -> Vec2<T> {
|
||||||
self.add_v(&other.sub_v(&self).mul_t(value))
|
self.add_v(&other.sub_v(&self).mul_t(amount))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -361,8 +361,8 @@ pub impl<T:Copy Num Exp> Vec3<T>: GeometricVector<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pure fn lerp(other: &Vec3<T>, value: T) -> Vec3<T> {
|
pure fn lerp(other: &Vec3<T>, amount: T) -> Vec3<T> {
|
||||||
self.add_v(&other.sub_v(&self).mul_t(value))
|
self.add_v(&other.sub_v(&self).mul_t(amount))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -553,8 +553,8 @@ pub impl<T:Copy Num Exp> Vec4<T>: GeometricVector<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pure fn lerp(other: &Vec4<T>, value: T) -> Vec4<T> {
|
pure fn lerp(other: &Vec4<T>, amount: T) -> Vec4<T> {
|
||||||
self.add_v(&other.sub_v(&self).mul_t(value))
|
self.add_v(&other.sub_v(&self).mul_t(amount))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue