Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 29, 2005, 10:36:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: slight optimizations and a new definition for PNode.
now one can get the Direction as a Vector (or Quaternion)

File:
1 edited

Legend:

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

    r4338 r4372  
    5757
    5858
    59   inline const Vector& getRelCoor () const { return this->relCoordinate; }
    6059  void setRelCoor (const Vector& relCoord);
    61   inline const Vector& getAbsCoor () const { return this->absCoordinate; }
     60  /** \returns the relative position */
     61  inline const Vector& getRelCoor () const { return this->relCoordinate; };
    6262  void setAbsCoor (const Vector& absCoord);
     63  /** \retuns the absolute position */
     64  inline const Vector& getAbsCoor () const { return this->absCoordinate; };
    6365  void shiftCoor (const Vector& shift);
    6466
    65   inline const Quaternion& getRelDir () const { return this->relDirection; }
    6667  void setRelDir (const Quaternion& relDir);
    67   inline const Quaternion& getAbsDir () const { return this->absDirection; }
     68  /** \returns the relative Direction */
     69  inline const Quaternion& getRelDir () const { return this->relDirection; };
     70  /** \returns a Vector pointing into the relative Direction */
     71  inline Vector getRelDirV() const { return this->relDirection.apply(Vector(0,1,0)); };
    6872  void setAbsDir (const Quaternion& absDir);
     73  /** \returns the absolute Direction */
     74  inline const Quaternion& getAbsDir () const { return this->absDirection; };
     75  /** \returns a Vector pointing into the absolute Direction */
     76  inline Vector getAbsDirV() const { return this->absDirection.apply(Vector(0,1,0)); };
     77
    6978  void shiftDir (const Quaternion& shift);
    7079
Note: See TracChangeset for help on using the changeset viewer.