From 6634f73a6768f61f928d51941be5e970e6011f07 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Fri, 23 Feb 2018 07:40:05 -0600 Subject: -changed to floats and got vec type --- src/mass.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mass.rs') 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); } -- cgit v1.2.3