#ifndef IGL_QUAT_MULT_H #define IGL_QUAT_MULT_H #include "igl_inline.h" namespace igl { // Computes out = q1 * q2 with quaternion multiplication // A Quaternion, q, is defined here as an arrays of four scalars (x,y,z,w), // such that q = x*i + y*j + z*k + w // Inputs: // q1 left quaternion // q2 right quaternion // Outputs: // out result of multiplication template IGL_INLINE void quat_mult( const Q_type *q1, const Q_type *q2, Q_type *out); }; #ifdef IGL_HEADER_ONLY # include "quat_mult.cpp" #endif #endif