OGLplus  (0.59.0) a C++ wrapper for rendering APIs

diff.hpp
Go to the documentation of this file.
1 #ifndef EAGINE_VECT_DIFF_HPP
9 #define EAGINE_VECT_DIFF_HPP
10 
11 #include "abs.hpp"
12 
13 namespace eagine::vect {
14 
15 template <typename T, int N, bool V>
16 struct diff {
17  using _dpT = data_param_t<T, N, V>;
18 
19  static auto apply(_dpT a, _dpT b) noexcept -> data_t<T, N, V> {
20  return vect::abs<T, N, V>::apply(a - b);
21  }
22 };
23 
24 // TODO: some optimizations ?
25 
26 } // namespace eagine::vect
27 
28 #endif // EAGINE_VECT_DIFF_HPP

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).