summaryrefslogtreecommitdiffstats
path: root/base_math.h
blob: d02ac4794aae78cce548eb380532c168ea6c4319 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef BASE_MATH_H
#define BASE_MATH_H

#define Vec2(x, y)      \
 (Vec2)              \
 {                   \
  (f32) x, (f32)y \
 }

typedef struct Vec2 Vec2;
struct Vec2 {
 f32 x, y;
};

typedef struct Vec3 Vec3;
struct Vec3 {
 f32 x, y, z;
};

#endif // BASE_MATH_H