/*============================================================================= Copyright (c) 2011-2017 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 { // // l1 // template inline SPROUT_CONSTEXPR T l1(sprout::math::quaternion const& q) { return sprout::math::detail::abs_sum( sprout::array{{ q.R_component_1(), q.R_component_2(), q.R_component_3(), q.R_component_4() }} ); } } // namespace math using sprout::math::l1; } // namespace sprout #endif // #ifndef SPROUT_MATH_QUATERNION_SUP_HPP