Moved files
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
use bevy::reflect::{FromReflect, Reflect};
|
||||
|
||||
use super::Precision;
|
||||
|
||||
#[derive(Reflect, FromReflect, Default, Copy, Clone, Debug)]
|
||||
pub struct Length(pub Precision);
|
||||
|
||||
impl From<i16> for Length {
|
||||
fn from(i: i16) -> Self {
|
||||
Self(Precision::from(i))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<f32> for Length {
|
||||
fn from(i: f32) -> Self {
|
||||
#[allow(clippy::useless_conversion)]
|
||||
Self(Precision::from(i))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user