interdev

Position::GetPosition

Jun 16th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. void GetPosition(float &x, float &y) const
  2.         { x = m_positionX; y = m_positionY; }
  3.     void GetPosition(float &x, float &y, float &z) const
  4.         { x = m_positionX; y = m_positionY; z = m_positionZ; }
  5.     void GetPosition(float &x, float &y, float &z, float &o) const
  6.         { x = m_positionX; y = m_positionY; z = m_positionZ; o = m_orientation; }
  7.     void GetPosition(Position* pos) const
  8.     {
  9.         if (pos)
  10.             pos->Relocate(m_positionX, m_positionY, m_positionZ, m_orientation);
  11.     }
  12.  
  13.     Position GetPosition() const
  14.     {
  15.         return *this;
  16.     }
Add Comment
Please, Sign In to add comment