use core::ops::Mul;
use crate::Vec2;
#[opimps::impl_ops(Mul)]
#[inline]
fn mul<T>(self: Vec2<T>, rhs: Vec2<T>) -> Vec2<T> where T: Mul<Output = T> + Copy {
Vec2 { x: self.x * rhs.x, y: self.y * rhs.y }
}
#[opimps::impl_ops_rprim(Mul)]
#[inline]
fn mul<T>(self: Vec2<T>, rhs: T) -> Vec2<T> where T: Mul<Output = T> + Copy {
Vec2 { x: self.x * rhs, y: self.y * rhs}
}
#[opimps::impl_ops_lprim(Mul)]
#[inline]
fn mul(self: f32, rhs: Vec2<f32>) -> Vec2<f32> {
Vec2 { x: self * rhs.x, y: self * rhs.y }
}
#[opimps::impl_ops_lprim(Mul)]
#[inline]
fn mul(self: f64, rhs: Vec2<f64>) -> Vec2<f64> {
Vec2 { x: self * rhs.x, y: self * rhs.y }
}
#[opimps::impl_ops_lprim(Mul)]
#[inline]
fn mul(self: i32, rhs: Vec2<i32>) -> Vec2<i32> {
Vec2 { x: self * rhs.x, y: self * rhs.y }
}
#[opimps::impl_ops_lprim(Mul)]
#[inline]
fn mul(self: i64, rhs: Vec2<i64>) -> Vec2<i64> {
Vec2 { x: self * rhs.x, y: self * rhs.y }
}