This library is a header-only library,it provides:
- Quaternion basic operations;
- Transcendental functions;
- Literals;
- `slerp` and `nlerp` interpolation(SIMD);
- `squad` interpolation;
- distances;
- Conversion functions with other libraries.
Example code:
//You can copy this code.
#include "Quaternion.hpp"
#include <iostream>
using namespace QLiterals;
int main(){
auto q=stoq<double>("1+2i+3j+4k");
std::cout<<q<<std::endl;//1+2i+3j+4k
}