|
@@ -1,14 +1,15 @@
|
|
|
/// @ref ext_vector_common
|
|
/// @ref ext_vector_common
|
|
|
/// @file glm/ext/vector_common.hpp
|
|
/// @file glm/ext/vector_common.hpp
|
|
|
///
|
|
///
|
|
|
-/// @see core (dependence)
|
|
|
|
|
-///
|
|
|
|
|
/// @defgroup ext_vector_common GLM_EXT_vector_common
|
|
/// @defgroup ext_vector_common GLM_EXT_vector_common
|
|
|
/// @ingroup ext
|
|
/// @ingroup ext
|
|
|
///
|
|
///
|
|
|
|
|
+/// Min and max functions for 3 to 4 parameters.
|
|
|
|
|
+///
|
|
|
/// Include <glm/ext/vector_common.hpp> to use the features of this extension.
|
|
/// Include <glm/ext/vector_common.hpp> to use the features of this extension.
|
|
|
///
|
|
///
|
|
|
-/// Min and max functions for 3 to 4 parameters.
|
|
|
|
|
|
|
+/// @see core_common
|
|
|
|
|
+/// @see ext_scalar_common
|
|
|
|
|
|
|
|
#pragma once
|
|
#pragma once
|
|
|
|
|
|
|
@@ -30,8 +31,6 @@ namespace glm
|
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
|
/// @tparam T Floating-point or integer scalar types
|
|
/// @tparam T Floating-point or integer scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
- ///
|
|
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
|
|
|
|
|
|
|
@@ -40,8 +39,6 @@ namespace glm
|
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
|
/// @tparam T Floating-point or integer scalar types
|
|
/// @tparam T Floating-point or integer scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
- ///
|
|
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
|
|
|
|
|
|
|
@@ -50,8 +47,6 @@ namespace glm
|
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
|
/// @tparam T Floating-point or integer scalar types
|
|
/// @tparam T Floating-point or integer scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
- ///
|
|
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& z);
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& z);
|
|
|
|
|
|
|
@@ -60,8 +55,6 @@ namespace glm
|
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
/// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
|
|
|
/// @tparam T Floating-point or integer scalar types
|
|
/// @tparam T Floating-point or integer scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
- ///
|
|
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max( vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& z, vec<L, T, Q> const& w);
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max( vec<L, T, Q> const& x, vec<L, T, Q> const& y, vec<L, T, Q> const& z, vec<L, T, Q> const& w);
|
|
|
|
|
|
|
@@ -71,7 +64,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& x, T y);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& x, T y);
|
|
@@ -82,7 +74,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
|
|
@@ -93,7 +84,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
|
|
@@ -104,7 +94,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmin">std::fmin documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmin(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
|
|
@@ -115,7 +104,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, T b);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, T b);
|
|
@@ -126,7 +114,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b);
|
|
@@ -137,7 +124,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c);
|
|
@@ -148,7 +134,6 @@ namespace glm
|
|
|
/// @tparam T Floating-point scalar types
|
|
/// @tparam T Floating-point scalar types
|
|
|
/// @tparam Q Value from qualifier enum
|
|
/// @tparam Q Value from qualifier enum
|
|
|
///
|
|
///
|
|
|
- /// @see ext_vector_common
|
|
|
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
/// @see <a href="http://en.cppreference.com/w/cpp/numeric/math/fmax">std::fmax documentation</a>
|
|
|
template<length_t L, typename T, qualifier Q>
|
|
template<length_t L, typename T, qualifier Q>
|
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
|
|
GLM_FUNC_DECL vec<L, T, Q> fmax(vec<L, T, Q> const& a, vec<L, T, Q> const& b, vec<L, T, Q> const& c, vec<L, T, Q> const& d);
|