Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7348 in orxonox.OLD for trunk/src/lib/math/quaternion.h


Ignore:
Timestamp:
Apr 19, 2006, 2:55:29 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: new Quaternion Functionality. Also added <abs-dir> to TurbineHover

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/math/quaternion.h

    r7191 r7348  
    9696  inline void normalize() { float n = this->norm(); this->v /= n; this->w/=n; };
    9797
     98  float getHeading() const;
     99  float getAttitude() const;
     100  float getBank() const;
    98101  /** @returns the rotational axis of this Quaternion */
    99102  inline Vector getSpacialAxis() const { return this->v / sin(acos(w));/*sqrt(v.x*v.x + v.y*v.y + v.z+v.z);*/ };
Note: See TracChangeset for help on using the changeset viewer.