add convert v3
This commit is contained in:
parent
5a6216689a
commit
802b5a9a8d
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "glm/gtc/type_ptr.hpp" // IWYU pragma: keep
|
||||
#include <glm/gtc/type_ptr.hpp>
|
||||
|
||||
namespace mt
|
||||
{
|
||||
@ -8,4 +8,7 @@ namespace mt
|
||||
|
||||
template<typename T>
|
||||
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 }; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user