32 #include "LinearMath/btVector3.h"
60 tgPair(btVector3 from, btVector3 to);
62 tgPair(btVector3 from, btVector3 to, std::string tags);
72 const btVector3&
getFrom()
const;
88 const btVector3&
getTo()
const;
94 void setTo(btVector3 to);
96 void addRotation(
const btVector3& fixedPoint,
97 const btVector3& axis,
100 void addRotation(
const btVector3& fixedPoint,
101 const btVector3& fromOrientation,
102 const btVector3& toOrientation);
104 void addRotation(
const btVector3& fixedPoint,
105 const btQuaternion& rotation);
110 inline bool operator==(
const tgPair& other)
const
115 void move(
const btVector3& offset);
122 void scale(
const btVector3& referencePoint,
double scaleFactor);
140 os <<
"tgPair(" << pair.
getFrom() <<
", " << pair.
getTo()
141 <<
", {" << pair.getTagStr(
", ") <<
"})";
152 std::stringstream os;
153 std::string indent = std::string(2 * (indentLevel),
' ');
154 os << indent <<
"- tags: " <<
asYamlList(pair.getTags()) << std::endl;
155 os << indent <<
" pair: ["
156 <<
"[" << pair.
getFrom().x() <<
", " << pair.
getFrom().y() <<
", " << pair.
getFrom().z() <<
"]" <<
", "
157 <<
"[" << pair.
getTo().x() <<
", " << pair.
getTo().y() <<
", " << pair.
getTo().z() <<
"]"
std::string asYamlItem(const tgPair &pair, int indentLevel=0)
std::pair< btVector3, btVector3 > m_pair
std::ostream & operator<<(std::ostream &os, const tgPair &pair)
Contains the definition of class tgTaggable.
void setFrom(btVector3 from)