matrix can handle any type for input

This commit is contained in:
Jon Janzen
2022-01-01 17:54:03 -07:00
parent 8a0f44144d
commit e22fa3db61
3 changed files with 151 additions and 135 deletions

View File

@@ -8,6 +8,13 @@ pub mod canvas;
pub mod matrix;
pub mod transformations;
#[macro_export]
macro_rules! num_traits_cast {
($tt:expr) => {
num_traits::cast($tt).unwrap()
};
}
#[cfg(test)]
mod tests {
#[test]