MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Mul

Method Mul

renderdoc/maths/matrix.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55Matrix4f Matrix4f::Mul(const Matrix4f &o) const
56{
57 Matrix4f m;
58 for(size_t x = 0; x < 4; x++)
59 {
60 for(size_t y = 0; y < 4; y++)
61 {
62 m[matIdx(x, y)] =
63 (*this)[matIdx(x, 0)] * o[matIdx(0, y)] + (*this)[matIdx(x, 1)] * o[matIdx(1, y)] +
64 (*this)[matIdx(x, 2)] * o[matIdx(2, y)] + (*this)[matIdx(x, 3)] * o[matIdx(3, y)];
65 }
66 }
67
68 return m;
69}
70
71Matrix4f Matrix4f::Transpose() const
72{

Callers 9

UpdateMethod · 0.80
RenderMeshMethod · 0.80
PickVertexMethod · 0.80
RenderMeshMethod · 0.80
PickVertexMethod · 0.80
RenderMeshMethod · 0.80
PickVertexMethod · 0.80
RenderMeshMethod · 0.80
PickVertexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected