Changeset 6137 for code/branches/presentation2/src/libraries/util
- Timestamp:
- Nov 24, 2009, 3:11:31 AM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/util/Math.cc
r5738 r6137 43 43 namespace orxonox 44 44 { 45 #if OGRE_VERSION < 0x010603 45 46 /** 46 47 @brief Function for writing a Radian to a stream. … … 51 52 return out; 52 53 } 54 55 /** 56 @brief Function for writing a Degree to a stream. 57 */ 58 std::ostream& operator<<(std::ostream& out, const orxonox::Degree& degree) 59 { 60 out << degree.valueDegrees(); 61 return out; 62 } 63 #endif 53 64 54 65 /** … … 61 72 radian = temp; 62 73 return in; 63 }64 65 /**66 @brief Function for writing a Degree to a stream.67 */68 std::ostream& operator<<(std::ostream& out, const orxonox::Degree& degree)69 {70 out << degree.valueDegrees();71 return out;72 74 } 73 75 -
code/branches/presentation2/src/libraries/util/Math.h
r5738 r6137 59 59 namespace orxonox 60 60 { 61 #if OGRE_VERSION < 0x010603 61 62 _UtilExport std::ostream& operator<<(std::ostream& out, const orxonox::Radian& radian); 63 _UtilExport std::ostream& operator<<(std::ostream& out, const orxonox::Degree& degree); 64 #endif 62 65 _UtilExport std::istream& operator>>(std::istream& in, orxonox::Radian& radian); 63 _UtilExport std::ostream& operator<<(std::ostream& out, const orxonox::Degree& degree);64 66 _UtilExport std::istream& operator>>(std::istream& in, orxonox::Degree& degree); 65 67
Note: See TracChangeset
for help on using the changeset viewer.