#include "./mat4.h"
#include "./quat.h"

namespace math
{
  
  QUAT fROT_XYZ(const VEC3 &angle) {
    MAT4 m;
    m.identity();
    m.rotateYXZ(angle);
    return m.getRot();
  }

  QUAT fLERP_ANGLE(const VEC3 &a, const VEC3 &b, float t) { // TODO: optimization
    return fROT_XYZ(a).lerp(fROT_XYZ(b), t);//.normal();
  }

}
