From 3062122e5e4ee568d1108a56b95ce4601c794385 Mon Sep 17 00:00:00 2001 From: Gottfried Leibniz <37632412+gottfriedleibniz@users.noreply.github.com> Date: Fri, 14 Jan 2022 19:16:44 -0400 Subject: [PATCH] fix: associated min/max Remove unused qualifier and fix incorrect definition --- glm/gtx/associated_min_max.hpp | 6 +++--- glm/gtx/associated_min_max.inl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/glm/gtx/associated_min_max.hpp b/glm/gtx/associated_min_max.hpp index d1a41c06..0edd3b00 100644 --- a/glm/gtx/associated_min_max.hpp +++ b/glm/gtx/associated_min_max.hpp @@ -31,13 +31,13 @@ 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 - GLM_FUNC_DECL vec<2, U, Q> associatedMin( + GLM_FUNC_DECL vec associatedMin( vec const& x, vec const& a, vec const& y, vec const& b); @@ -115,7 +115,7 @@ namespace glm /// Maximum comparison between 2 variables and returns 2 associated variable values /// @see gtx_associated_min_max template - GLM_FUNC_DECL vec<2, U, Q> associatedMax( + GLM_FUNC_DECL vec associatedMax( vec const& x, vec const& a, vec const& y, vec const& b); diff --git a/glm/gtx/associated_min_max.inl b/glm/gtx/associated_min_max.inl index 5186c471..f09f5bb7 100644 --- a/glm/gtx/associated_min_max.inl +++ b/glm/gtx/associated_min_max.inl @@ -3,14 +3,14 @@ namespace glm{ // Min comparison between 2 variables -template +template GLM_FUNC_QUALIFIER U associatedMin(T x, U a, T y, U b) { return x < y ? a : b; } template -GLM_FUNC_QUALIFIER vec<2, U, Q> associatedMin +GLM_FUNC_QUALIFIER vec associatedMin ( vec const& x, vec const& a, vec const& y, vec const& b @@ -169,7 +169,7 @@ GLM_FUNC_QUALIFIER U associatedMax(T x, U a, T y, U b) // Max comparison between 2 variables template -GLM_FUNC_QUALIFIER vec<2, U, Q> associatedMax +GLM_FUNC_QUALIFIER vec associatedMax ( vec const& x, vec const& a, vec const& y, vec const& b