/*============================================================================= Copyright (c) 2011-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_MATH_QUATERNION_SUP_HPP #define SPROUT_MATH_QUATERNION_SUP_HPP #include #include #include #include namespace sprout { namespace math { // // sup // template inline SPROUT_CONSTEXPR T sup(sprout::math::quaternion const& q) { return sprout::math::detail::abs_max( sprout::array{{ q.R_component_1(), q.R_component_2(), q.R_component_3(), q.R_component_4() }} ); } } // namespace math using sprout::math::sup; } // namespace sprout #endif // #ifndef SPROUT_MATH_QUATERNION_SUP_HPP