34 #include "LinearMath/btVector3.h"
35 #include "LinearMath/btQuaternion.h"
49 tgNode(
const btVector3& v = btVector3(),
50 const std::string& tags =
"") :
54 tgNode(
double x,
double y,
double z,
55 const std::string& tags =
"") :
63 const btVector3& fromOrientation,
64 const btVector3& toOrientation)
76 const btVector3& axis,
87 const btQuaternion& rotation)
95 bool operator==(
const tgNode& other)
const
97 return (this->x() == other.x()) &&
98 (this->y() == other.y()) &&
99 (this->z() == other.z());
116 os <<
"tgNode(" << node.x() <<
", " << node.y() <<
", " << node.z() <<
", {" << node.getTagStr(
", ") <<
"})";
127 std::stringstream os;
128 std::string indent = std::string(2 * (indentLevel),
' ');
129 os << indent <<
"- tags: " <<
asYamlList(node.getTags()) << std::endl;
130 os << indent <<
" xyz: [" << node.x() <<
", " << node.y() <<
", " << node.z() <<
"]" << std::endl;
static btQuaternion getQuaternionBetween(btVector3 a, btVector3 b, const btVector3 &fallbackAxis=btVector3(0, 0, 0))
void addRotation(const btVector3 &fixedPoint, const btVector3 &fromOrientation, const btVector3 &toOrientation)
void addRotation(const btVector3 &fixedPoint, const btQuaternion &rotation)
Contains the definition of class tgTaggable.
std::string asYamlItem(const tgNode &node, int indentLevel=0)
std::ostream & operator<<(std::ostream &os, const tgNode &node)
Rand seeding simular to the evolution and terrain classes.
static void addRotation(btVector3 &v, const btVector3 &fixedPoint, const btVector3 &axis, double angle)
void addRotation(const btVector3 &fixedPoint, const btVector3 &axis, double angle)