8 #include <glm/gtx/string_cast.hpp> 10 #include "maths/Rotation.h" 12 #include <boost/variant/get.hpp> 13 #include <boost/variant/variant.hpp> 19 typedef boost::variant<
20 bool, int, float, double, std::string, glm::dvec3,
Rotation 73 ss << glm::to_string(v);
93 template <
typename T>
int sgn(T val) {
94 return (T(0) < val) - (val < T(0));
Definition: Rotation.h:80
double getQ0()
Get the scalar coordinate of the quaternion.
Definition: Rotation.h:115
std::string operator()(bool b) const
String visitor behavior fo bool type.
Definition: typedef.h:31
double getQ3()
Get the third coordinate of the vectorial part of the quaternion.
Definition: Rotation.h:137
stringVisitor defines a different string building behavior for different printable objects ...
Definition: typedef.h:27
double getQ1()
Get the first coordinate of the vectorial part of the quaternion.
Definition: Rotation.h:122
double getQ2()
Get the second coordinate of the vectorial part of the quaternion.
Definition: Rotation.h:130