summaryrefslogtreecommitdiff
path: root/maths.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-24 00:38:40 +1100
committerquou <quou@disroot.org>2025-01-24 00:38:40 +1100
commit2751f6bd1ac8c11a68075d303e84411617b67b9b (patch)
tree2a60b8d26efb68e1f74f59bbcce6843d601bf59a /maths.hpp
parent4c1d051529ccbc4f9cc26be63241703dc49b0995 (diff)
construct a 4x4 rotation matrix using a quaternion
Diffstat (limited to 'maths.hpp')
-rw-r--r--maths.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/maths.hpp b/maths.hpp
index 57a9b29..87dcc43 100644
--- a/maths.hpp
+++ b/maths.hpp
@@ -496,6 +496,7 @@ struct m4f {
static m4f translate(m4f m, v3f v);
static m4f rotate(m4f m, float a, v3f v);
+ static m4f rotate(m4f m, const v4f& q);
static m4f scale(m4f m, v3f v);
v3f get_translation();