From 6ea28c83ff0179859bebfe6a579f7a20b1ae8440 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 28 May 2016 22:14:58 +0200 Subject: [PATCH] Fixed reflect for scalars... --- glm/detail/func_geometric.inl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/glm/detail/func_geometric.inl b/glm/detail/func_geometric.inl index df6372ac..0d7a5484 100644 --- a/glm/detail/func_geometric.inl +++ b/glm/detail/func_geometric.inl @@ -183,6 +183,12 @@ namespace detail } // reflect + template + GLM_FUNC_QUALIFIER genType reflect(genType const & I, genType const & N) + { + return I - N * dot(N, I) * genType(2); + } + template class vecType> GLM_FUNC_QUALIFIER vecType reflect(vecType const & I, vecType const & N) {