summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorRay <[email protected]>2018-07-02 18:53:46 +0200
committerRay <[email protected]>2018-07-02 18:53:46 +0200
commit7b971e06236c581087a851c8ecda11bb7be12839 (patch)
tree6bb66acb26e3146fcb25bdb1d1de3554b8284a55 /src/raymath.h
parent1727bbabb17805bba8810f3134465fc71a50ddf7 (diff)
downloadraylib-7b971e06236c581087a851c8ecda11bb7be12839.tar.gz
raylib-7b971e06236c581087a851c8ecda11bb7be12839.zip
Added Quaternion typedef
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/raymath.h b/src/raymath.h
index a574dd0d..4e100bc3 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -114,6 +114,14 @@
float y;
float z;
} Vector3;
+
+ // Quaternion type
+ typedef struct Quaternion {
+ float x;
+ float y;
+ float z;
+ float w;
+ } Quaternion;
// Matrix type (OpenGL style 4x4 - right handed, column major)
typedef struct Matrix {
@@ -122,14 +130,6 @@
float m2, m6, m10, m14;
float m3, m7, m11, m15;
} Matrix;
-
- // Quaternion type
- typedef struct Quaternion {
- float x;
- float y;
- float z;
- float w;
- } Quaternion;
#endif
// NOTE: Helper types to be used instead of array return types for *ToFloat functions