Starting to work
This commit is contained in:
@@ -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]
|
||||
}
|
||||
)*
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user