Allow dividing a Vector2F by an f32 value.
This commit is contained in:
parent
43adc9c24a
commit
3a8339fece
|
@ -246,6 +246,14 @@ impl Div<Vector2F> for Vector2F {
|
|||
}
|
||||
}
|
||||
|
||||
impl Div<f32> for Vector2F {
|
||||
type Output = Vector2F;
|
||||
#[inline]
|
||||
fn div(self, other: f32) -> Vector2F {
|
||||
self / Vector2F::splat(other)
|
||||
}
|
||||
}
|
||||
|
||||
impl Neg for Vector2F {
|
||||
type Output = Vector2F;
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in New Issue