use crate::vector3::Vector3;
pub trait Conversion<T> {
fn convert(self) -> T;
}
impl Conversion<Vector3> for f32 {
fn convert(self) -> Vector3 {
Vector3::new(self, self, self)
}
}
impl Conversion<Vector3> for i32 {
fn convert(self) -> Vector3 {
Vector3::new(self as f32, self as f32, self as f32)
}
}