From 2751f6bd1ac8c11a68075d303e84411617b67b9b Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 24 Jan 2025 00:38:40 +1100 Subject: construct a 4x4 rotation matrix using a quaternion --- maths.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'maths.hpp') 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(); -- cgit v1.2.3-54-g00ecf