summaryrefslogtreecommitdiff
path: root/src/mass.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2018-02-23 07:40:05 -0600
committertom barrett <spalf0@gmail.com>2018-02-23 07:40:05 -0600
commit6634f73a6768f61f928d51941be5e970e6011f07 (patch)
tree1af5ef4a713061ad9bb10b0cb897362d59c430ec /src/mass.rs
parent53281aa16e262124631af4abd19e16a921de098d (diff)
-changed to floats and got vec type
Diffstat (limited to 'src/mass.rs')
-rw-r--r--src/mass.rs6
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);
}