- Timestamp:
 - May 29, 2005, 10:36:20 AM (20 years ago)
 - Location:
 - orxonox/trunk/src/lib
 - Files:
 - 
          
- 3 edited
 
- 
          coord/p_node.h (modified) (1 diff)
 - 
          math/vector.cc (modified) (2 diffs)
 - 
          math/vector.h (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
orxonox/trunk/src/lib/coord/p_node.h
r4338 r4372 57 57 58 58 59 inline const Vector& getRelCoor () const { return this->relCoordinate; }60 59 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; }; 62 62 void setAbsCoor (const Vector& absCoord); 63 /** \retuns the absolute position */ 64 inline const Vector& getAbsCoor () const { return this->absCoordinate; }; 63 65 void shiftCoor (const Vector& shift); 64 66 65 inline const Quaternion& getRelDir () const { return this->relDirection; }66 67 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)); }; 68 72 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 69 78 void shiftDir (const Quaternion& shift); 70 79  - 
        
orxonox/trunk/src/lib/math/vector.cc
r3971 r4372 100 100 */ 101 101 102 Vector Vector::getNormalized() 102 Vector Vector::getNormalized() const 103 103 { 104 104 float l = len(); … … 329 329 */ 330 330 331 Vector Quaternion::apply ( Vector& v) const331 Vector Quaternion::apply (const Vector& v) const 332 332 { 333 333 Quaternion q;  - 
        
orxonox/trunk/src/lib/math/vector.h
r3971 r4372 56 56 z = z / l; 57 57 } 58 Vector getNormalized() ;58 Vector getNormalized() const; 59 59 Vector abs(); 60 60 … … 96 96 return r;} 97 97 Quaternion inverse () const; 98 Vector apply ( Vector& f) const;98 Vector apply (const Vector& f) const; 99 99 float norm () const; 100 100 void matrix (float m[4][4]) const;  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






