Files
vertex_engine/src/utils/math.hpp
Andrey Zimin a0b5e810f7 initial commit
2024-05-15 09:09:36 +03:00

18 lines
299 B
C++

#pragma once
#include "glm/gtc/type_ptr.hpp"
namespace mt
{
using vec2 = glm::vec2;
using vec3 = glm::vec3;
using vec4 = glm::vec4;
using mat2 = glm::mat2;
using mat3 = glm::mat3;
using mat4 = glm::mat4;
template<typename T>
T convert(glm::vec2& v) { return T{ v.x, v.y }; }
}