From de9909df038d1b6bb47bcc82fea5f8dc9dec2491 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 28 Dec 2021 15:42:50 +0000 Subject: Initial implementation for being able to click in the main window to select something --- lib/maths.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/maths.cpp') diff --git a/lib/maths.cpp b/lib/maths.cpp index 4d9f8d4..b8dbd34 100644 --- a/lib/maths.cpp +++ b/lib/maths.cpp @@ -70,6 +70,12 @@ rotate_ypr(glm::vec3 a) return rotate_yaw(a.y) * rotate_pitch(a.x) * rotate_roll(a.z); } +glm::mat4 +rotate_yp(glm::vec2 a) +{ + return rotate_yaw(a.y) * rotate_pitch(a.x); +} + float vector_yaw(const glm::vec3 & diff) { -- cgit v1.2.3