Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3802 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.h


Ignore:
Timestamp:
Apr 13, 2005, 7:20:38 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some more performance tweaks on PNode: making arguments const, functions also if possible. regrouping code to speedup perfomance

File:
1 edited

Legend:

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

    r3683 r3802  
    5757
    5858
    59   Vector* getRelCoor ();
     59  Vector* getRelCoor () const;
    6060  void setRelCoor (Vector* relCoord);
    6161  void setRelCoor (Vector relCoord);
    62   Vector getAbsCoor ();
     62  Vector getAbsCoor () const;
    6363  void setAbsCoor (Vector* absCoord);
    6464  void setAbsCoor (Vector absCoord);
     
    6767  //void shiftCoor (Vector shift);
    6868
    69   Quaternion getRelDir ();
     69  Quaternion getRelDir () const;
    7070  void setRelDir (Quaternion* relDir);
    7171  void setRelDir (Quaternion relDir);
    72   Quaternion getAbsDir ();
     72  Quaternion getAbsDir () const;
    7373  void setAbsDir (Quaternion* absDir);
    7474  void setAbsDir (Quaternion absDir);
    75   void shiftDir (Quaternion* shift);
     75  void shiftDir (const Quaternion& shift);
    7676  void shiftDir (Quaternion shift);
    7777
    78   float getSpeed();
     78  float getSpeed() const;
    7979
    80   void addChild (PNode* pNode);
    81   void addChild (PNode* pNode, int parentingMode);
     80  void addChild (PNode* pNode, int parentingMode = DEFAULT_MODE);
    8281  void removeChild (PNode* pNode);
    8382  void remove();
     
    118117
    119118  Vector* lastAbsCoordinate; //!< this is used for speedcalculation, it stores the last coordinate
     119  Vector* diffCoordinate;    //!< this is stored here for performance reasons, difference to the last vector
    120120  float time;                //!< time since last update
    121121};
Note: See TracChangeset for help on using the changeset viewer.