initial commit
This commit is contained in:
17
src/utils/math.hpp
Normal file
17
src/utils/math.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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 }; }
|
||||
}
|
||||
Reference in New Issue
Block a user