From 802b5a9a8db301858ea69b5a30c69fd9e5055e20 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Thu, 16 Jan 2025 14:48:10 +0300 Subject: [PATCH] add convert v3 --- src/utils/math.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/math.hpp b/src/utils/math.hpp index 873acfa..a042035 100644 --- a/src/utils/math.hpp +++ b/src/utils/math.hpp @@ -1,6 +1,6 @@ #pragma once -#include "glm/gtc/type_ptr.hpp" // IWYU pragma: keep +#include namespace mt { @@ -8,4 +8,7 @@ namespace mt template T convert(vec2& v) { return T{ v.x, v.y }; } + + template + T convert(vec3& v) { return T{ v.x, v.y, v.z }; } }