src/matrix.h

changeset 21
0133e565e072
parent 17
a5111f4e6412
child 24
1a0faaaceb84
equal deleted inserted replaced
20:cef43609a374 21:0133e565e072
144 stream >> cell.value; 144 stream >> cell.value;
145 } 145 }
146 return stream; 146 return stream;
147 } 147 }
148 148
149 Matrix4x4 combine(const Matrix3x3& topLeft, const struct Point3D& translation);
150
149 static constexpr Matrix3x3 identity3x3 {{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}}; 151 static constexpr Matrix3x3 identity3x3 {{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}};
150 static constexpr Matrix4x4 identity4x4 {{{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}}; 152 static constexpr Matrix4x4 identity4x4 {{{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}}};

mercurial