1 //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef UUID_49C5A1042AEF11DF9603880056D89593
7 #define UUID_49C5A1042AEF11DF9603880056D89593
9 #include <boost/qvm/inline.hpp>
10 #include <boost/qvm/assert.hpp>
11 #include <boost/qvm/static_assert.hpp>
38 quat_traits< quat<T> >
40 typedef quat<T> this_quaternion;
41 typedef T scalar_type;
45 BOOST_QVM_INLINE_CRITICAL
47 read_element( this_quaternion const & x )
49 BOOST_QVM_STATIC_ASSERT(I>=0);
50 BOOST_QVM_STATIC_ASSERT(I<4);
56 BOOST_QVM_INLINE_CRITICAL
58 write_element( this_quaternion & x )
60 BOOST_QVM_STATIC_ASSERT(I>=0);
61 BOOST_QVM_STATIC_ASSERT(I<4);