starting to fix compilation issues

This commit is contained in:
Kbz-8
2024-09-02 13:36:02 +02:00
parent b7d554553b
commit 1b996af83f
29 changed files with 77 additions and 132 deletions

View File

@@ -1,8 +1,7 @@
#pragma once
#include <Maths/Vec3.h>
namespace Scop
namespace mlx
{
template<typename T>
constexpr Vec3<T>::Vec3(T X, T Y, T Z) : x(X), y(Y), z(Z) {}
@@ -145,14 +144,14 @@ namespace Scop
template<typename T>
constexpr T& Vec3<T>::operator[](std::size_t i)
{
Scop::Assert(i < 3, "index out of range");
mlx::Assert(i < 3, "index out of range");
return *(&x + i);
}
template<typename T>
constexpr const T& Vec3<T>::operator[](std::size_t i) const
{
Scop::Assert(i < 3, "index out of range");
mlx::Assert(i < 3, "index out of range");
return *(&x + i);
}