Minor fixes

This commit is contained in:
SirLynix
2022-12-08 19:20:54 +01:00
parent 780359eb8b
commit 8b101114d1
6 changed files with 10 additions and 20 deletions

View File

@@ -101,10 +101,10 @@ namespace Nz
Matrix4& Transpose();
T& operator()(std::size_t x, std::size_t y);
T operator()(std::size_t x, std::size_t y) const;
const T& operator()(std::size_t x, std::size_t y) const;
T& operator[](std::size_t i);
T operator[](std::size_t i) const;
const T& operator[](std::size_t i) const;
Matrix4& operator=(const Matrix4& matrix) = default;

View File

@@ -1297,7 +1297,7 @@ namespace Nz
* \remark x and y must both be comprised in range [0,4[
*/
template<typename T>
T Matrix4<T>::operator()(std::size_t x, std::size_t y) const
const T& Matrix4<T>::operator()(std::size_t x, std::size_t y) const
{
NazaraAssert(x <= 3, "index out of range");
NazaraAssert(y <= 3, "index out of range");
@@ -1326,7 +1326,7 @@ namespace Nz
* \remark i must be comprised in range [0,16[
*/
template<typename T>
T Matrix4<T>::operator[](std::size_t i) const
const T& Matrix4<T>::operator[](std::size_t i) const
{
NazaraAssert(i <= 16, "index out of range");