/// @ref core /// @file glm/detail/func_vector_relational.inl #include namespace glm { template class vecType> GLM_FUNC_QUALIFIER vecType lessThan(vecType const & x, vecType const & y) { assert(x.length() == y.length()); vecType Result(uninitialize); for(length_t i = 0; i < x.length(); ++i) Result[i] = x[i] < y[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER vecType lessThanEqual(vecType const & x, vecType const & y) { assert(x.length() == y.length()); vecType Result(uninitialize); for(length_t i = 0; i < x.length(); ++i) Result[i] = x[i] <= y[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER vecType greaterThan(vecType const & x, vecType const & y) { assert(x.length() == y.length()); vecType Result(uninitialize); for(length_t i = 0; i < x.length(); ++i) Result[i] = x[i] > y[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER vecType greaterThanEqual(vecType const & x, vecType const & y) { assert(x.length() == y.length()); vecType Result(uninitialize); for(length_t i = 0; i < x.length(); ++i) Result[i] = x[i] >= y[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER vecType equal(vecType const & x, vecType const & y) { assert(x.length() == y.length()); vecType Result(uninitialize); for(length_t i = 0; i < x.length(); ++i) Result[i] = x[i] == y[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER vecType notEqual(vecType const & x, vecType const & y) { assert(x.length() == y.length()); vecType Result(uninitialize); for(length_t i = 0; i < x.length(); ++i) Result[i] = x[i] != y[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER bool any(vecType const & v) { bool Result = false; for(length_t i = 0; i < v.length(); ++i) Result = Result || v[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER bool all(vecType const & v) { bool Result = true; for(length_t i = 0; i < v.length(); ++i) Result = Result && v[i]; return Result; } template class vecType> GLM_FUNC_QUALIFIER vecType not_(vecType const & v) { vecType Result(uninitialize); for(length_t i = 0; i < v.length(); ++i) Result[i] = !v[i]; return Result; } }//namespace glm #if GLM_ARCH != GLM_ARCH_PURE && GLM_HAS_UNRESTRICTED_UNIONS # include "func_vector_relational_simd.inl" #endif