Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4997 in orxonox.OLD for orxonox/trunk/src/lib/coord


Ignore:
Timestamp:
Aug 13, 2005, 3:10:52 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: optimized vector class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r4996 r4997  
    339339{
    340340  if (this->parent)
    341     this->relDirection = absDir * parent->getAbsDir().inverse();
     341    this->relDirection = absDir / parent->getAbsDir();
    342342  else
    343343    this->relDirection = absDir;
     
    489489  this->setRelCoor(tmpV - parentNode->getAbsCoor());
    490490
    491   this->setRelDir(tmpQ * parentNode->getAbsDir().inverse());
     491  this->setRelDir(tmpQ / parentNode->getAbsDir());
    492492}
    493493
     
    543543      if (unlikely(this->toDirection != NULL))
    544544      {
    545         Quaternion rotQuat = (*this->toDirection * this->getRelDir().inverse()) *dt*bias;
     545        Quaternion rotQuat = (*this->toDirection / this->getRelDir()) *dt*bias;
     546        rotQuat.debug();
    546547//        if (likely(rotQuat.len() >= .001))
    547548        {
Note: See TracChangeset for help on using the changeset viewer.