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 getQ2() const
Get the second coordinate of the vectorial part of the quaternion.
Definition: Rotation.h:130
double getQ1() const
Get the first coordinate of the vectorial part of the quaternion.
Definition: Rotation.h:122
double getQ3() const
Get the third coordinate of the vectorial part of the quaternion.
Definition: Rotation.h:137
double getQ0() const
Get the scalar coordinate of the quaternion.
Definition: Rotation.h:115
stringVisitor defines a different string building behavior for different printable objects
Definition: typedef.h:27
std::string operator()(bool b) const
String visitor behavior fo bool type.
Definition: typedef.h:31