quat_conjugate.cpp 471 B

1234567891011121314151617181920
  1. #include "quat_conjugate.h"
  2. template <typename Q_type>
  3. IGL_INLINE void igl::quat_conjugate(
  4. const Q_type *q1,
  5. Q_type *out)
  6. {
  7. out[0] = -q1[0];
  8. out[1] = -q1[1];
  9. out[2] = -q1[2];
  10. out[3] = q1[3];
  11. }
  12. #ifndef IGL_HEADER_ONLY
  13. // Explicit template specialization
  14. // generated by autoexplicit.sh
  15. template void igl::quat_conjugate<double>(double const*, double*);
  16. // generated by autoexplicit.sh
  17. template void igl::quat_conjugate<float>(float const*, float*);
  18. #endif