Advertisement
tinyevil

Untitled

Aug 6th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. void multiply(Matrix& out, const Matrix& l, const Matrix& r){
  2.     out.a = l.a * r.a + l.b * r.c;
  3.     out.b = l.a * r.b + l.b * r.d;
  4.     out.c = l.c * r.a + l.d * r.c;
  5.     out.d = l.c * r.b + l.d * r.d;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement