std::string nml::to_string(const nml::quat& vec)ï
Return a quat as a string under the format âa + bi + cj + dkâ.
Exampleï
#include "include/quat.h"
#include <iostream>
int main() {
nml::quat q(1.0f, 0.25f, 0.5f, 0.75f);
std::cout << nml::to_string(q) << std::endl;
return 0;
}
Result:
1.000000 + 0.250000i + 0.500000j + 0.750000k