Browse Source

Introduce V2 type

rexim 4 years ago
parent
commit
f677b694fc
1 changed files with 6 additions and 0 deletions
  1. 6 0
      oglt_math.h

+ 6 - 0
oglt_math.h

@@ -1,6 +1,12 @@
 #ifndef OGLT_MATH_H_
 #ifndef OGLT_MATH_H_
 #define OGLT_MATH_H_
 #define OGLT_MATH_H_
 
 
+#define V2_COUNT 2
+
+typedef struct {
+    float x, y;
+} V2;
+
 static inline float lerp(float a, float b, float t)
 static inline float lerp(float a, float b, float t)
 {
 {
     return a + (b - a) * t;
     return a + (b - a) * t;