Starting to work on rendering

This commit is contained in:
Thomas Forgione
2018-02-26 11:45:53 +01:00
parent 037b38c704
commit 80b397d3ec
7 changed files with 120 additions and 38 deletions
+6
View File
@@ -31,6 +31,12 @@ macro_rules! make_vector {
}
}
impl<T> Into<[T; $number]> for $name<T> {
fn into(self) -> [T; $number] {
self.data
}
}
impl<T: Copy + Clone> Into<($( $t ) ,* )> for $name<T> {
fn into(self) -> ($( $t ) ,* ) {
( $( self.data[$y] ), *)