classicube_sys\vectors\matrix/
ops.rs

1use core::ops::Mul;
2
3use crate::{bindings::*, Matrix_Identity};
4
5impl Mul<Self> for Matrix {
6    type Output = Self;
7
8    fn mul(self, right: Self) -> Self {
9        let mut result = Matrix_Identity;
10        unsafe {
11            Matrix_Mul(&mut result, &self, &right);
12        }
13        result
14    }
15}