Math/Matrix4: Remove implicit conversion to pointer

This commit is contained in:
Jérôme Leclercq
2021-07-03 18:20:00 +02:00
parent ffb28a9044
commit f2bb1a839c
3 changed files with 57 additions and 70 deletions

View File

@@ -12,6 +12,7 @@
#include <Nazara/Core/TypeTag.hpp>
#include <Nazara/Math/Angle.hpp>
#include <Nazara/Math/Config.hpp>
#include <cstddef>
#include <string>
namespace Nz
@@ -100,11 +101,11 @@ namespace Nz
Matrix4& Transpose();
operator T* ();
operator const T* () const;
T& operator()(std::size_t x, std::size_t y);
T operator()(std::size_t x, std::size_t y) const;
T& operator()(unsigned int x, unsigned int y);
T operator()(unsigned int x, unsigned int y) const;
T& operator[](std::size_t i);
T operator[](std::size_t i) const;
Matrix4& operator=(const Matrix4& matrix) = default;