1234567891011121314151617181920 |
- #include "quat_conjugate.h"
- template <typename Q_type>
- IGL_INLINE void igl::quat_conjugate(
- const Q_type *q1,
- Q_type *out)
- {
- out[0] = -q1[0];
- out[1] = -q1[1];
- out[2] = -q1[2];
- out[3] = q1[3];
- }
- #ifndef IGL_HEADER_ONLY
- // Explicit template specialization
- // generated by autoexplicit.sh
- template void igl::quat_conjugate<double>(double const*, double*);
- // generated by autoexplicit.sh
- template void igl::quat_conjugate<float>(float const*, float*);
- #endif
|