lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
2 changed files with 17 additions and 2 deletions
Showing only changes of commit 56b781fcb8 - Show all commits

View File

@ -2,7 +2,11 @@
#[macro_export(local_inner_macros)]
macro_rules! impl_matrix {
() => {
//$crate::impl_common!();
impl<const X:usize,const Y:usize,T> Matrix<X,Y,T>{
pub const fn new(array:[[T;Y];X])->Self{
Self{array}
}
}
}
}

View File

@ -2,7 +2,18 @@
#[macro_export(local_inner_macros)]
macro_rules! impl_vector {
() => {
//$crate::impl_common!();
impl<const N:usize,T> Vector<N,T>{
pub const fn new(array:[T;N])->Self{
Self{array}
}
}
impl<const N:usize,T:Copy> Vector<N,T>{
pub const fn from_value(value:T)->Self{
Self{
array:[value;N]
}
}
}
}
}