Starting to work

This commit is contained in:
Thomas Forgione
2018-04-10 15:13:35 +02:00
parent b9bdac0dae
commit 376a38c4dc
5 changed files with 161 additions and 23 deletions
+5
View File
@@ -66,6 +66,11 @@ macro_rules! make_vector {
pub fn $x(&self) -> T {
self.data[$y]
}
/// Get a mut ref to the coordinate of the vector.
pub fn $x_mut(&mut self) -> &mut T {
&mut self.data[$y]
}
)*
}