diff options
Diffstat (limited to 'src/mass.rs')
-rw-r--r-- | src/mass.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mass.rs b/src/mass.rs index 8c50348..0a49dc6 100644 --- a/src/mass.rs +++ b/src/mass.rs @@ -1,10 +1,10 @@ use downcast::Any; pub trait Mass : Any { - fn new(name : &str, location : (isize, isize, isize)) -> Self where Self: Sized; + fn new(name : &str, location : (f64, f64, f64)) -> Self where Self: Sized; fn name(&self) -> &String; - fn location(&self) -> (isize, isize, isize); - fn set_location(&mut self, location : (isize, isize, isize)); + fn location(&self) -> (f64, f64, f64); + fn set_location(&mut self, location : (f64, f64, f64)); fn serialize(&self) -> String; fn deserialize(&mut self, data : &str); } |