Logo Search packages:      
Sourcecode: ktechlab version File versions

const PositionInfo PositionInfo::operator- ( const PositionInfo info  ) 

Not quite the inverse of operator+. Subtracts the given position info as if it was applied before this current info.

Definition at line 370 of file mechanicsitem.cpp.

References angle(), rotate(), translate(), x(), and y().


      PositionInfo newInfo = *this;
      newInfo.translate( -info.x(), -info.y() );
      newInfo.rotate( -info.angle() );
      return newInfo;

Generated by  Doxygen 1.6.0   Back to index