From 2877f4eda3d1b0c7431039e3142ecf1a282a34b1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 21 Aug 2018 20:40:38 +0500 Subject: Update glm to 0.9.9.0 --- external/include/glm/gtx/orthonormalize.hpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'external/include/glm/gtx/orthonormalize.hpp') diff --git a/external/include/glm/gtx/orthonormalize.hpp b/external/include/glm/gtx/orthonormalize.hpp index 4bea449..48b157f 100644 --- a/external/include/glm/gtx/orthonormalize.hpp +++ b/external/include/glm/gtx/orthonormalize.hpp @@ -7,9 +7,9 @@ /// @defgroup gtx_orthonormalize GLM_GTX_orthonormalize /// @ingroup gtx /// -/// @brief Orthonormalize matrices. +/// Include to use the features of this extension. /// -/// need to be included to use these functionalities. +/// Orthonormalize matrices. #pragma once @@ -18,6 +18,10 @@ #include "../mat3x3.hpp" #include "../geometric.hpp" +#ifndef GLM_ENABLE_EXPERIMENTAL +# error "GLM: GLM_GTX_orthonormalize is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it." +#endif + #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) # pragma message("GLM: GLM_GTX_orthonormalize extension included") #endif @@ -30,14 +34,14 @@ namespace glm /// Returns the orthonormalized matrix of m. /// /// @see gtx_orthonormalize - template - GLM_FUNC_DECL tmat3x3 orthonormalize(tmat3x3 const & m); - + template + GLM_FUNC_DECL mat<3, 3, T, Q> orthonormalize(mat<3, 3, T, Q> const& m); + /// Orthonormalizes x according y. /// /// @see gtx_orthonormalize - template - GLM_FUNC_DECL tvec3 orthonormalize(tvec3 const & x, tvec3 const & y); + template + GLM_FUNC_DECL vec<3, T, Q> orthonormalize(vec<3, T, Q> const& x, vec<3, T, Q> const& y); /// @} }//namespace glm -- cgit v1.2.3