summaryrefslogtreecommitdiff
path: root/include/rune_math.h
blob: 25bf4fd7cb4e8c0e54fd9ce91c402b74a9ce5b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef RUNE_MATH_H
#define RUNE_MATH_H

struct vec2 {
        float x;
        float y;
};

struct vec3 {
        float x;
        float y;
        float z;
};

struct vec4 {
        float x;
        float y;
        float z;
        float w;
};

struct mat3 {
        struct vec3 v[3];
};

struct mat4 {
        struct vec3 v[4];
};

struct quat {
        float x;
        float y;
        float z;
        float w;
};

#endif