From 680d958c9f710eb0bc400ee63ea5f7313dc77e38 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 15 Mar 2023 15:25:15 -0400 Subject: [PATCH] inline function --- include/blt/math/vectors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/blt/math/vectors.h b/include/blt/math/vectors.h index 2d27ba0..6d5f6af 100644 --- a/include/blt/math/vectors.h +++ b/include/blt/math/vectors.h @@ -283,7 +283,7 @@ namespace blt { typedef vec4f vec4; namespace vec_algorithm { - void findOrthogonalBasis(const vec3& v, vec3& v1, vec3& v2, vec3& v3) { + static inline void findOrthogonalBasis(const vec3& v, vec3& v1, vec3& v2, vec3& v3) { v1 = v.normalize(); vec3 arbitraryVector{1, 0, 0}; @@ -296,7 +296,7 @@ namespace blt { } // Gram-Schmidt orthonormalization algorithm - void gramSchmidt(std::vector& vectors) { + static inline void gramSchmidt(std::vector& vectors) { int n = (int)vectors.size(); std::vector basis;