Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 843 Bytes

math.md

File metadata and controls

19 lines (15 loc) · 843 Bytes

Matrix Multiplication

"Every Row dot Every Column" "Every Row (of the left hand side) dot (product) Every Column (of the right hand side)"

Row vs Column Major: Memory Layout
Row vs Column Vectors: Math order (row * mat or mat * col)
D3D vs OpenGL/Mathematicians
https://www.mindcontrol.org/~hplus/graphics/matrix-layout.html

https://github.com/JaapSuter/Ten18/blob/master/lib/DirectXTex/XNAMath/xnamath.h#L2742
https://github.com/microsoft/DirectXMath/blob/7fcdfbc3c64d5c695b39fb376c1f5fb52e1084db/Inc/DirectXMathMatrix.inl#L1964
https://github.com/microsoft/DirectXMath/blob/7fcdfbc3c64d5c695b39fb376c1f5fb52e1084db/Inc/DirectXMathMatrix.inl#L2002

Associative (AB)C = A(BC)
Distirubtive A(B+C) = AB+AC
NOT commutative (AB != BA)