diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-01-24 13:37:58 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-01-24 13:37:58 +0800 |
commit | 867b8979de2514e059189239fdb674be232ac4c0 (patch) | |
tree | 3e9ee8c0fff364211f518fcbc70b97470b30d42b /indra/llmath/llvector4a.h | |
parent | a9a601de76da660a454fab779395ab4959765b7a (diff) | |
parent | aa02a5b3f44243e55f85e121d7d53e96e94a7422 (diff) |
Merge remote-tracking branch 'secondlife/release/2024.12-ForeverFPS' into 2024.12-ForeverFPS
Diffstat (limited to 'indra/llmath/llvector4a.h')
-rw-r--r-- | indra/llmath/llvector4a.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llmath/llvector4a.h b/indra/llmath/llvector4a.h index 8ef560dadf..4004852e06 100644 --- a/indra/llmath/llvector4a.h +++ b/indra/llmath/llvector4a.h @@ -33,6 +33,9 @@ class LLRotation; #include <assert.h> #include "llpreprocessor.h" #include "llmemory.h" +#include "glm/vec3.hpp" +#include "glm/vec4.hpp" +#include "glm/gtc/type_ptr.hpp" /////////////////////////////////// // FIRST TIME USERS PLEASE READ @@ -364,6 +367,16 @@ public: inline operator LLQuad() const; + explicit inline operator glm::vec3() const + { + return glm::make_vec3(getF32ptr()); + }; + + explicit inline operator glm::vec4() const + { + return glm::make_vec4(getF32ptr()); + }; + private: LLQuad mQ{}; }; |