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/associated_min_max.hpp | 171 ++++++++++++------------ 1 file changed, 88 insertions(+), 83 deletions(-) (limited to 'external/include/glm/gtx/associated_min_max.hpp') diff --git a/external/include/glm/gtx/associated_min_max.hpp b/external/include/glm/gtx/associated_min_max.hpp index eb9d721..42ac2eb 100644 --- a/external/include/glm/gtx/associated_min_max.hpp +++ b/external/include/glm/gtx/associated_min_max.hpp @@ -6,15 +6,20 @@ /// /// @defgroup gtx_associated_min_max GLM_GTX_associated_min_max /// @ingroup gtx -/// +/// +/// Include to use the features of this extension. +/// /// @brief Min and max functions that return associated values not the compared onces. -/// need to be included to use these functionalities. #pragma once // Dependency: #include "../glm.hpp" +#ifndef GLM_ENABLE_EXPERIMENTAL +# error "GLM: GTX_associated_min_max 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_associated_min_max extension included") #endif @@ -26,29 +31,29 @@ namespace glm /// Minimum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template + template GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b); /// Minimum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL tvec2 associatedMin( - vecType const & x, vecType const & a, - vecType const & y, vecType const & b); + template + GLM_FUNC_DECL vec<2, U, Q> associatedMin( + vec const& x, vec const& a, + vec const& y, vec const& b); /// Minimum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMin( - T x, const vecType& a, - T y, const vecType& b); + template + GLM_FUNC_DECL vec associatedMin( + T x, const vec& a, + T y, const vec& b); /// Minimum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMin( - vecType const & x, U a, - vecType const & y, U b); + template + GLM_FUNC_DECL vec associatedMin( + vec const& x, U a, + vec const& y, U b); /// Minimum comparison between 3 variables and returns 3 associated variable values /// @see gtx_associated_min_max @@ -60,11 +65,11 @@ namespace glm /// Minimum comparison between 3 variables and returns 3 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMin( - vecType const & x, vecType const & a, - vecType const & y, vecType const & b, - vecType const & z, vecType const & c); + template + GLM_FUNC_DECL vec associatedMin( + vec const& x, vec const& a, + vec const& y, vec const& b, + vec const& z, vec const& c); /// Minimum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max @@ -77,30 +82,30 @@ namespace glm /// Minimum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMin( - vecType const & x, vecType const & a, - vecType const & y, vecType const & b, - vecType const & z, vecType const & c, - vecType const & w, vecType const & d); + template + GLM_FUNC_DECL vec associatedMin( + vec const& x, vec const& a, + vec const& y, vec const& b, + vec const& z, vec const& c, + vec const& w, vec const& d); /// Minimum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMin( - T x, vecType const & a, - T y, vecType const & b, - T z, vecType const & c, - T w, vecType const & d); + template + GLM_FUNC_DECL vec associatedMin( + T x, vec const& a, + T y, vec const& b, + T z, vec const& c, + T w, vec const& d); /// Minimum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMin( - vecType const & x, U a, - vecType const & y, U b, - vecType const & z, U c, - vecType const & w, U d); + template + GLM_FUNC_DECL vec associatedMin( + vec const& x, U a, + vec const& y, U b, + vec const& z, U c, + vec const& w, U d); /// Maximum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max @@ -109,24 +114,24 @@ namespace glm /// Maximum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL tvec2 associatedMax( - vecType const & x, vecType const & a, - vecType const & y, vecType const & b); + template + GLM_FUNC_DECL vec<2, U, Q> associatedMax( + vec const& x, vec const& a, + vec const& y, vec const& b); /// Maximum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - T x, vecType const & a, - T y, vecType const & b); + template + GLM_FUNC_DECL vec associatedMax( + T x, vec const& a, + T y, vec const& b); /// Maximum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - vecType const & x, U a, - vecType const & y, U b); + template + GLM_FUNC_DECL vec associatedMax( + vec const& x, U a, + vec const& y, U b); /// Maximum comparison between 3 variables and returns 3 associated variable values /// @see gtx_associated_min_max @@ -138,27 +143,27 @@ namespace glm /// Maximum comparison between 3 variables and returns 3 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - vecType const & x, vecType const & a, - vecType const & y, vecType const & b, - vecType const & z, vecType const & c); + template + GLM_FUNC_DECL vec associatedMax( + vec const& x, vec const& a, + vec const& y, vec const& b, + vec const& z, vec const& c); /// Maximum comparison between 3 variables and returns 3 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - T x, vecType const & a, - T y, vecType const & b, - T z, vecType const & c); + template + GLM_FUNC_DECL vec associatedMax( + T x, vec const& a, + T y, vec const& b, + T z, vec const& c); /// Maximum comparison between 3 variables and returns 3 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - vecType const & x, U a, - vecType const & y, U b, - vecType const & z, U c); + template + GLM_FUNC_DECL vec associatedMax( + vec const& x, U a, + vec const& y, U b, + vec const& z, U c); /// Maximum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max @@ -171,30 +176,30 @@ namespace glm /// Maximum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - vecType const & x, vecType const & a, - vecType const & y, vecType const & b, - vecType const & z, vecType const & c, - vecType const & w, vecType const & d); + template + GLM_FUNC_DECL vec associatedMax( + vec const& x, vec const& a, + vec const& y, vec const& b, + vec const& z, vec const& c, + vec const& w, vec const& d); /// Maximum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - T x, vecType const & a, - T y, vecType const & b, - T z, vecType const & c, - T w, vecType const & d); + template + GLM_FUNC_DECL vec associatedMax( + T x, vec const& a, + T y, vec const& b, + T z, vec const& c, + T w, vec const& d); /// Maximum comparison between 4 variables and returns 4 associated variable values /// @see gtx_associated_min_max - template class vecType> - GLM_FUNC_DECL vecType associatedMax( - vecType const & x, U a, - vecType const & y, U b, - vecType const & z, U c, - vecType const & w, U d); + template + GLM_FUNC_DECL vec associatedMax( + vec const& x, U a, + vec const& y, U b, + vec const& z, U c, + vec const& w, U d); /// @} } //namespace glm -- cgit v1.2.3