From 521fec3513933df62075ce41260f60220136909d Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Mon, 16 Dec 2024 14:31:06 +0100 Subject: [PATCH] Add `float_val / int_vec` convenience operator --- openVulkanoCpp/Math/Math.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openVulkanoCpp/Math/Math.hpp b/openVulkanoCpp/Math/Math.hpp index 4205600..a6f0f03 100644 --- a/openVulkanoCpp/Math/Math.hpp +++ b/openVulkanoCpp/Math/Math.hpp @@ -171,3 +171,9 @@ namespace OpenVulkano::Math typedef Quaternion QuaternionD; typedef Quaternion QuaternionI; } + +template>> +glm::vec operator / (const float lhs, const glm::vec& rhs) +{ + return lhs / glm::vec(rhs); +}