summaryrefslogtreecommitdiff
path: root/lib/maths.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-18 14:50:21 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-18 14:50:26 +0000
commit5af54c1584a1ce7797dfcb9e75dfbb26bdfc6338 (patch)
tree03b0b3d893ad3247c4d13fd815f055aaa680c80d /lib/maths.h
parentReuse close edges when adding new vertices for surface (diff)
downloadilt-5af54c1584a1ce7797dfcb9e75dfbb26bdfc6338.tar.bz2
ilt-5af54c1584a1ce7797dfcb9e75dfbb26bdfc6338.tar.xz
ilt-5af54c1584a1ce7797dfcb9e75dfbb26bdfc6338.zip
2D vector_normal to work on any arithmetic
Diffstat (limited to 'lib/maths.h')
-rw-r--r--lib/maths.h2
1 files changed, 1 insertions, 1 deletions
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<D, T, Q> & diff)
return std::atan(diff.z);
}
-template<std::floating_point T, glm::qualifier Q>
+template<Arithmetic T, glm::qualifier Q>
constexpr glm::vec<2, T, Q>
vector_normal(const glm::vec<2, T, Q> & vector)
{