parent
2dd425c191
commit
3447f6096c
4 changed files with 12 additions and 29 deletions
@ -1,3 +1,3 @@ |
||||
#pragma once |
||||
|
||||
#include "vec.h" |
||||
#include "type.h" |
@ -1,4 +1,5 @@ |
||||
#pragma once |
||||
|
||||
#include <math.h> |
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/matrix_transform.hpp> |
@ -0,0 +1,10 @@ |
||||
#pragma once |
||||
#include "mathpch.h" |
||||
|
||||
namespace Bk::Math { |
||||
typedef glm::vec2 Vec2; |
||||
typedef glm::vec3 Vec3; |
||||
typedef glm::ve4 Vec4; |
||||
typedef glm::mat4 Mat4; |
||||
typedef glm::mat3 Mat3;
|
||||
} |
@ -1,28 +0,0 @@ |
||||
#pragma once |
||||
|
||||
#include "mathpch.h" |
||||
|
||||
namespace Bk::Math { |
||||
class vec2 { |
||||
public: |
||||
float x; |
||||
float y; |
||||
|
||||
vec2() { |
||||
this->x = 0; |
||||
this->y = 0; |
||||
} |
||||
vec2(float x, float y) { |
||||
this->x = x; |
||||
this->y = y; |
||||
} |
||||
vec2(glm::vec2 vec) { |
||||
this->x = vec.x; |
||||
this->y = vec.y; |
||||
} |
||||
|
||||
glm::vec2 get_glm() { |
||||
return glm::vec2(this->x, this->y); |
||||
} |
||||
}; |
||||
} |
Loading…
Reference in New Issue