Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5435 in orxonox.OLD for trunk/src/lib/math/vector.h


Ignore:
Timestamp:
Oct 25, 2005, 5:31:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: power-ups implemented (simple-mode)

File:
1 edited

Legend:

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

    r5420 r5435  
    187187  inline Vector getSpacialAxis() const { return this->v / sin(acos(w));/*sqrt(v.x*v.x + v.y*v.y + v.z+v.z);*/ };
    188188  /** @returns the rotational angle of this Quaternion around getSpacialAxis()  !! IN DEGREE !! */
    189   inline float getSpacialAxisAngle() const { return 360.0 / M_PI * acos(this->w); };
     189  inline float getSpacialAxisAngle() const { return 360.0 / M_PI * acos( this->w ); };
    190190
    191191  static Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);
Note: See TracChangeset for help on using the changeset viewer.