geometry.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. // See http://boostorg.github.com/compute for more information.
  9. //---------------------------------------------------------------------------//
  10. #ifndef BOOST_COMPUTE_FUNCTIONAL_GEOMETRY_HPP
  11. #define BOOST_COMPUTE_FUNCTIONAL_GEOMETRY_HPP
  12. #include <boost/compute/type_traits.hpp>
  13. #include <boost/compute/functional/detail/macros.hpp>
  14. namespace boost {
  15. namespace compute {
  16. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(cross, T (T, T), class T)
  17. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(dot, typename scalar_type<T>::type (T, T), class T)
  18. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(distance, typename scalar_type<T>::type (T, T), class T)
  19. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fast_distance, typename scalar_type<T>::type (T, T), class T)
  20. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(length, typename scalar_type<T>::type (T), class T)
  21. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fast_length, typename scalar_type<T>::type (T), class T)
  22. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(normalize, T (T), class T)
  23. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fast_normalize, T (T), class T)
  24. } // end compute namespace
  25. } // end boost namespace
  26. #endif // BOOST_COMPUTE_FUNCTIONAL_GEOMETRY_HPP