40 tgPair::tgPair(btVector3 from, btVector3 to) : m_pair(from, to),
tgTaggable()
43 tgPair::tgPair(btVector3 from, btVector3 to, std::string tags) : m_pair(from, to),
tgTaggable(tags)
54 assert(
m_pair.first != NULL);
60 assert(
m_pair.first != NULL);
78 assert(
m_pair.second != NULL);
84 assert(
m_pair.second != NULL);
97 void tgPair::addRotation(
const btVector3& fixedPoint,
98 const btVector3& axis,
105 void tgPair::addRotation(
const btVector3& fixedPoint,
106 const btVector3& fromOrientation,
107 const btVector3& toOrientation)
113 void tgPair::addRotation(
const btVector3& fixedPoint,
114 const btQuaternion& rotation)
120 void tgPair::move(
const btVector3& offset)
126 void tgPair::scale(
const btVector3& referencePoint,
double scaleFactor) {
127 m_pair.first.setX((
m_pair.first.x() - referencePoint.x()) * scaleFactor + referencePoint.x());
128 m_pair.first.setY((
m_pair.first.y() - referencePoint.y()) * scaleFactor + referencePoint.y());
129 m_pair.first.setZ((
m_pair.first.z() - referencePoint.z()) * scaleFactor + referencePoint.z());
131 m_pair.second.setX((
m_pair.second.x() - referencePoint.x()) * scaleFactor + referencePoint.x());
132 m_pair.second.setY((
m_pair.second.y() - referencePoint.y()) * scaleFactor + referencePoint.y());
133 m_pair.second.setZ((
m_pair.second.z() - referencePoint.z()) * scaleFactor + referencePoint.z());
std::pair< btVector3, btVector3 > m_pair
Definition of class tgPair.
void setFrom(btVector3 from)
Rand seeding simular to the evolution and terrain classes.
static void addRotation(btVector3 &v, const btVector3 &fixedPoint, const btVector3 &axis, double angle)