Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void multiply(Matrix& out, const Matrix& l, const Matrix& r){
- out.a = l.a * r.a + l.b * r.c;
- out.b = l.a * r.b + l.b * r.d;
- out.c = l.c * r.a + l.d * r.c;
- out.d = l.c * r.b + l.d * r.d;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement