remove the bevy based turtle and rename turtle-lib-macroquad to turtle-lib
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
//! Length type for distance measurements
|
||||
|
||||
use super::Precision;
|
||||
|
||||
#[derive(Default, Copy, Clone, Debug, PartialEq)]
|
||||
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(f: f32) -> Self {
|
||||
Self(f)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<i32> for Length {
|
||||
fn from(i: i32) -> Self {
|
||||
Self(i as Precision)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user