20:cef43609a374 | 21:0133e565e072 |
---|---|
1 #include "matrix.h" | 1 #include "matrix.h" |
2 #include "vertex.h" | |
3 | |
4 Matrix4x4 combine(const Matrix3x3& topLeft, const Point3D& translation) | |
5 { | |
6 return {{ | |
7 {topLeft(0, 0), topLeft(0, 1), topLeft(0, 2), translation.x}, | |
8 {topLeft(1, 0), topLeft(1, 1), topLeft(1, 2), translation.y}, | |
9 {topLeft(2, 0), topLeft(2, 1), topLeft(2, 2), translation.z}, | |
10 {0, 0, 0, 1} | |
11 }}; | |
12 } |