1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00
This commit is contained in:
Lars Mueller 2025-05-29 02:13:52 +02:00
parent 513532a93c
commit f7067644a3
8 changed files with 107 additions and 92 deletions

View file

@ -1663,14 +1663,16 @@ inline void CMatrix4<T>::getTransposed(CMatrix4<T> &o) const
template <class T>
std::ostream& operator<<(std::ostream& os, const CMatrix4<T>& matrix)
{
for (int row = 0; row < 4; ++row) {
os << "(\n";
for (int row = 0; row < 4; ++row) {
for (int col = 0; col < 4; ++col) {
os << "\t";
os << matrix(row, col);
}
os << "\n";
}
return os;
os << ")";
return os;
}
// used to scale <-1,-1><1,1> to viewport