Browse Source

Fixed distance function return type #267

Christophe Riccio 11 years ago
parent
commit
c1f47f4c7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/detail/func_geometric.inl

+ 1 - 1
glm/detail/func_geometric.inl

@@ -105,7 +105,7 @@ namespace detail
 	}
 	}
 
 
 	template <typename T, precision P, template <typename, precision> class vecType>
 	template <typename T, precision P, template <typename, precision> class vecType>
-	GLM_FUNC_QUALIFIER vecType<T, P> distance(vecType<T, P> const & p0, vecType<T, P> const & p1)
+	GLM_FUNC_QUALIFIER T distance(vecType<T, P> const & p0, vecType<T, P> const & p1)
 	{
 	{
 		return length(p1 - p0);
 		return length(p1 - p0);
 	}
 	}