add convert v3

This commit is contained in:
chatlanin 2025-01-16 14:48:10 +03:00
parent 5a6216689a
commit 802b5a9a8d

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "glm/gtc/type_ptr.hpp" // IWYU pragma: keep #include <glm/gtc/type_ptr.hpp>
namespace mt namespace mt
{ {
@ -8,4 +8,7 @@ namespace mt
template<typename T> template<typename T>
T convert(vec2& v) { return T{ v.x, v.y }; } T convert(vec2& v) { return T{ v.x, v.y }; }
template<typename T>
T convert(vec3& v) { return T{ v.x, v.y, v.z }; }
} }