From 5af54c1584a1ce7797dfcb9e75dfbb26bdfc6338 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Dec 2024 14:50:21 +0000 Subject: 2D vector_normal to work on any arithmetic --- lib/maths.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/maths.h') diff --git a/lib/maths.h b/lib/maths.h index b28fe01..4223f14 100644 --- a/lib/maths.h +++ b/lib/maths.h @@ -223,7 +223,7 @@ vector_pitch(const glm::vec & diff) return std::atan(diff.z); } -template +template constexpr glm::vec<2, T, Q> vector_normal(const glm::vec<2, T, Q> & vector) { -- cgit v1.2.3