File indexing completed on 2025-01-18 09:50:42
0001 #ifndef BOOST_QVM_DETAIL_QUAT_ASSIGN_HPP_INCLUDED
0002 #define BOOST_QVM_DETAIL_QUAT_ASSIGN_HPP_INCLUDED
0003
0004
0005
0006
0007
0008
0009 #include <boost/qvm/config.hpp>
0010 #include <boost/qvm/enable_if.hpp>
0011 #include <boost/qvm/quat_traits.hpp>
0012
0013 namespace boost { namespace qvm {
0014
0015 template <class A,class B>
0016 BOOST_QVM_CONSTEXPR BOOST_QVM_INLINE_OPERATIONS
0017 typename enable_if_c<
0018 is_quat<A>::value && is_quat<B>::value,
0019 A &>::type
0020 assign( A & a, B const & b )
0021 {
0022 write_quat_element<0>(a,quat_traits<B>::template read_element<0>(b));
0023 write_quat_element<1>(a,quat_traits<B>::template read_element<1>(b));
0024 write_quat_element<2>(a,quat_traits<B>::template read_element<2>(b));
0025 write_quat_element<3>(a,quat_traits<B>::template read_element<3>(b));
0026 return a;
0027 }
0028
0029 } }
0030
0031 #endif