diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-07 06:02:29 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-07 06:02:29 -0400 |
commit | 6a45579dbbf991c0e12ce59958e3b533d19fc9d4 (patch) | |
tree | 83ad11d63c0a1d1c89b9469455ecbda4531fe6ac /glm-master/glm/gtx/extended_min_max.inl | |
parent | cb868acadcae4e3f497ecdabeca507f3e73e01c7 (diff) |
rotating skyboxgit add -A
Diffstat (limited to 'glm-master/glm/gtx/extended_min_max.inl')
-rw-r--r-- | glm-master/glm/gtx/extended_min_max.inl | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/glm-master/glm/gtx/extended_min_max.inl b/glm-master/glm/gtx/extended_min_max.inl new file mode 100644 index 0000000..de5998f --- /dev/null +++ b/glm-master/glm/gtx/extended_min_max.inl @@ -0,0 +1,138 @@ +/// @ref gtx_extended_min_max + +namespace glm +{ + template<typename T> + GLM_FUNC_QUALIFIER T min( + T const& x, + T const& y, + T const& z) + { + return glm::min(glm::min(x, y), z); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> min + ( + C<T> const& x, + typename C<T>::T const& y, + typename C<T>::T const& z + ) + { + return glm::min(glm::min(x, y), z); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> min + ( + C<T> const& x, + C<T> const& y, + C<T> const& z + ) + { + return glm::min(glm::min(x, y), z); + } + + template<typename T> + GLM_FUNC_QUALIFIER T min + ( + T const& x, + T const& y, + T const& z, + T const& w + ) + { + return glm::min(glm::min(x, y), glm::min(z, w)); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> min + ( + C<T> const& x, + typename C<T>::T const& y, + typename C<T>::T const& z, + typename C<T>::T const& w + ) + { + return glm::min(glm::min(x, y), glm::min(z, w)); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> min + ( + C<T> const& x, + C<T> const& y, + C<T> const& z, + C<T> const& w + ) + { + return glm::min(glm::min(x, y), glm::min(z, w)); + } + + template<typename T> + GLM_FUNC_QUALIFIER T max( + T const& x, + T const& y, + T const& z) + { + return glm::max(glm::max(x, y), z); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> max + ( + C<T> const& x, + typename C<T>::T const& y, + typename C<T>::T const& z + ) + { + return glm::max(glm::max(x, y), z); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> max + ( + C<T> const& x, + C<T> const& y, + C<T> const& z + ) + { + return glm::max(glm::max(x, y), z); + } + + template<typename T> + GLM_FUNC_QUALIFIER T max + ( + T const& x, + T const& y, + T const& z, + T const& w + ) + { + return glm::max(glm::max(x, y), glm::max(z, w)); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> max + ( + C<T> const& x, + typename C<T>::T const& y, + typename C<T>::T const& z, + typename C<T>::T const& w + ) + { + return glm::max(glm::max(x, y), glm::max(z, w)); + } + + template<typename T, template<typename> class C> + GLM_FUNC_QUALIFIER C<T> max + ( + C<T> const& x, + C<T> const& y, + C<T> const& z, + C<T> const& w + ) + { + return glm::max(glm::max(x, y), glm::max(z, w)); + } +}//namespace glm |