6 template<
typename genType>
7 GLM_FUNC_QUALIFIER genType
fastSqrt(genType x)
9 GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559,
"'fastSqrt' only accept floating-point input");
14 template<length_t L,
typename T, qualifier Q>
21 template<
typename genType>
27 template<length_t L,
typename T, qualifier Q>
34 template<
typename genType>
37 GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559,
"'fastLength' only accept floating-point inputs");
42 template<length_t L,
typename T, qualifier Q>
45 GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559,
"'fastLength' only accept floating-point inputs");
51 template<
typename genType>
57 template<length_t L,
typename T, qualifier Q>
64 template<
typename genType>
67 return x > genType(0) ? genType(1) : -genType(1);
70 template<length_t L,
typename T, qualifier Q>
71 GLM_FUNC_QUALIFIER vec<L, T, Q>
fastNormalize(vec<L, T, Q>
const& x)
GLM_FUNC_DECL GLM_CONSTEXPR genType abs(genType x)
GLM_FUNC_DECL genType fastNormalize(genType const &x)
GLM_FUNC_DECL genType fastSqrt(genType x)
Definition fast_square_root.inl:7
GLM_FUNC_DECL genType fastInverseSqrt(genType x)
Definition fast_square_root.inl:22
GLM_FUNC_DECL genType fastDistance(genType x, genType y)
Definition fast_square_root.inl:52
GLM_FUNC_DECL genType fastLength(genType x)
Definition fast_square_root.inl:35
Core features
Definition common.hpp:21
Definition func_exponential.inl:45
Definition _vectorize.hpp:7
Definition qualifier.hpp:35