improved matrix tests

This commit is contained in:
2024-09-01 18:38:25 +03:00
parent 813169a828
commit 9a3a4214b8
3 changed files with 186 additions and 10 deletions

View File

@@ -83,6 +83,10 @@ namespace omath
m_columns = other.m_columns;
m_data = std::move(other.m_data);
other.m_rows = 0;
other.m_columns = 0;
other.m_data = nullptr;
}
size_t Matrix::ColumnsCount() const noexcept
@@ -357,7 +361,7 @@ namespace omath
};
}
const float * Matrix::Raw() const
const float* Matrix::Raw() const
{
return m_data.get();
}
@@ -367,4 +371,11 @@ namespace omath
for (size_t i = 0; i < m_columns*m_rows; ++i)
At(i / m_rows, i % m_columns) = pRawMatrix[i];
}
Matrix::Matrix()
{
m_columns = 0;
m_rows = 0;
m_data = nullptr;
}
}