1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use core::ops::Mul;

use crate::{bindings::*, Matrix_Identity};

impl Mul<Self> for Matrix {
    type Output = Self;

    fn mul(self, right: Self) -> Self {
        let mut result = Matrix_Identity;
        unsafe {
            Matrix_Mul(&mut result, &self, &right);
        }
        result
    }
}