From c1f47f4c7d820f4882d68498a81cae34c2330715 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 14 Nov 2014 21:03:14 +0100 Subject: [PATCH] Fixed distance function return type #267 --- glm/detail/func_geometric.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/func_geometric.inl b/glm/detail/func_geometric.inl index 329a69cd..fd513990 100644 --- a/glm/detail/func_geometric.inl +++ b/glm/detail/func_geometric.inl @@ -105,7 +105,7 @@ namespace detail } template class vecType> - GLM_FUNC_QUALIFIER vecType distance(vecType const & p0, vecType const & p1) + GLM_FUNC_QUALIFIER T distance(vecType const & p0, vecType const & p1) { return length(p1 - p0); }