Changeset 1629 for code/branches/input/src/util/Math.h
- Timestamp:
- Jun 27, 2008, 8:07:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/util/Math.h
r1505 r1629 33 33 34 34 #include <ostream> 35 #include <string> 35 36 36 37 #include <OgreMath.h> … … 39 40 #include <OgreVector4.h> 40 41 #include <OgreMatrix3.h> 42 #include <OgreMatrix4.h> 41 43 #include <OgreQuaternion.h> 42 44 #include <OgreColourValue.h> … … 50 52 typedef Ogre::Vector4 Vector4; 51 53 typedef Ogre::Matrix3 Matrix3; 54 typedef Ogre::Matrix4 Matrix4; 52 55 typedef Ogre::Quaternion Quaternion; 53 56 typedef Ogre::ColourValue ColourValue; … … 58 61 _UtilExport std::ostream& operator<<(std::ostream& out, const orxonox::Degree& degree); 59 62 _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); 60 68 61 69 template <typename T> … … 156 164 } 157 165 166 _UtilExport unsigned long getUniqueNumber(); 167 _UtilExport std::string getUniqueNumberStr(); 168 158 169 class _UtilExport IntVector2 159 170 {
Note: See TracChangeset
for help on using the changeset viewer.