Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 29, 2005, 10:36:20 AM (20 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)

Location:
orxonox/trunk/src/lib/math
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/math/vector.cc

    r3971 r4372  
    100100*/
    101101
    102 Vector Vector::getNormalized()
     102Vector Vector::getNormalized() const
    103103{
    104104  float l = len();
     
    329329*/
    330330
    331 Vector Quaternion::apply (Vector& v) const
     331Vector Quaternion::apply (const Vector& v) const
    332332{
    333333  Quaternion q;
  • orxonox/trunk/src/lib/math/vector.h

    r3971 r4372  
    5656                      z = z / l;
    5757                    }
    58   Vector getNormalized();
     58  Vector getNormalized() const;
    5959  Vector abs();
    6060
     
    9696  return r;}
    9797  Quaternion inverse () const;
    98   Vector apply (Vector& f) const;
     98  Vector apply (const Vector& f) const;
    9999  float norm () const;
    100100  void matrix (float m[4][4]) const;
Note: See TracChangeset for help on using the changeset viewer.