Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 27, 2008, 8:07:29 AM (16 years ago)
Author:
rgrieder
Message:

updated input branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/util/Math.h

    r1505 r1629  
    3333
    3434#include <ostream>
     35#include <string>
    3536
    3637#include <OgreMath.h>
     
    3940#include <OgreVector4.h>
    4041#include <OgreMatrix3.h>
     42#include <OgreMatrix4.h>
    4143#include <OgreQuaternion.h>
    4244#include <OgreColourValue.h>
     
    5052  typedef Ogre::Vector4 Vector4;
    5153  typedef Ogre::Matrix3 Matrix3;
     54  typedef Ogre::Matrix4 Matrix4;
    5255  typedef Ogre::Quaternion Quaternion;
    5356  typedef Ogre::ColourValue ColourValue;
     
    5861_UtilExport std::ostream& operator<<(std::ostream& out, const orxonox::Degree& degree);
    5962_UtilExport std::istream& operator>>(std::istream& in, orxonox::Degree& degree);
     63
     64_UtilExport float getAngle(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& otherposition);
     65_UtilExport orxonox::Vector2 get2DViewdirection(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition);
     66_UtilExport orxonox::Vector2 get2DViewcoordinates(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition);
     67_UtilExport orxonox::Vector3 getPredictedPosition(const orxonox::Vector3& myposition, float projectilespeed, const orxonox::Vector3& targetposition, const orxonox::Vector3& targetvelocity);
    6068
    6169template <typename T>
     
    156164}
    157165
     166_UtilExport unsigned long getUniqueNumber();
     167_UtilExport std::string getUniqueNumberStr();
     168
    158169class _UtilExport IntVector2
    159170{
Note: See TracChangeset for help on using the changeset viewer.