Changeset 7401 for code/trunk/src/libraries/util/MathConvert.h
- Timestamp:
- Sep 11, 2010, 12:34:00 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/doc (added) merged: 7290-7292,7296-7300,7302-7304,7306-7312,7315-7318,7323,7325,7327,7331-7332,7334-7335,7345-7347,7352-7353,7356-7357,7361,7363-7367,7371-7375,7388
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/util/MathConvert.h
r6417 r7401 28 28 29 29 /** 30 @file 31 @brief 32 Math conversion functions. Definitions are in Math.cc 30 @file 31 @ingroup Convert 32 @brief 33 Conversion functions for Math types like Ogre::Vector3 (definitions are in Math.cc) 33 34 */ 34 35 … … 46 47 //////////////////// 47 48 48 // Vector2 to std::string49 /// Ogre::Vector2 to std::string conversion 49 50 template <> 50 51 struct ConverterExplicit<orxonox::Vector2, std::string> … … 62 63 }; 63 64 64 // Vector3 to std::string65 /// Ogre::Vector3 to std::string conversion 65 66 template <> 66 67 struct ConverterExplicit<orxonox::Vector3, std::string> … … 78 79 }; 79 80 80 // Vector4 to std::string81 /// Ogre::Vector4 to std::string conversion 81 82 template <> 82 83 struct ConverterExplicit<orxonox::Vector4, std::string> … … 94 95 }; 95 96 96 // Quaternion to std::string97 /// Ogre::Quaternion to std::string conversion 97 98 template <> 98 99 struct ConverterExplicit<orxonox::Quaternion, std::string> … … 110 111 }; 111 112 112 // ColourValue to std::string113 /// Ogre::ColourValue to std::string conversion 113 114 template <> 114 115 struct ConverterExplicit<orxonox::ColourValue, std::string> … … 131 132 //////////////////// 132 133 133 // std::string to Vector2134 /// std::string to Ogre::Vector2 conversion 134 135 template <> struct _UtilExport ConverterFallback<std::string, orxonox::Vector2> 135 136 { static bool convert(orxonox::Vector2* output, const std::string& input); }; 136 // std::string to Vector3137 /// std::string to Ogre::Vector3 conversion 137 138 template <> struct _UtilExport ConverterFallback<std::string, orxonox::Vector3> 138 139 { static bool convert(orxonox::Vector3* output, const std::string& input); }; 139 // std::string to Vector4140 /// std::string to Ogre::Vector4 conversion 140 141 template <> struct _UtilExport ConverterFallback<std::string, orxonox::Vector4> 141 142 { static bool convert(orxonox::Vector4* output, const std::string& input); }; 142 // std::string to Quaternion143 /// std::string to Ogre::Quaternion conversion 143 144 template <> struct _UtilExport ConverterFallback<std::string, orxonox::Quaternion> 144 145 { static bool convert(orxonox::Quaternion* output, const std::string& input); }; 145 // std::string to ColourValue146 /// std::string to Ogre::ColourValue conversion 146 147 template <> struct _UtilExport ConverterFallback<std::string, orxonox::ColourValue> 147 148 { static bool convert(orxonox::ColourValue* output, const std::string& input); }; … … 152 153 /////////////////////////////// 153 154 154 // From Radian155 /// Delegates conversions from Radian to conversions from float 155 156 template <class ToType> 156 157 struct ConverterFallback<orxonox::Radian, ToType> … … 162 163 }; 163 164 164 // From Degree165 /// Delegates conversions from Degree to conversions from float 165 166 template <class ToType> 166 167 struct ConverterFallback<orxonox::Degree, ToType> … … 172 173 }; 173 174 174 // To Radian175 /// Delegates conversions to Radian to conversions to float 175 176 template <class FromType> 176 177 struct ConverterFallback<FromType, orxonox::Radian> … … 189 190 }; 190 191 191 // To Degree192 /// Delegates conversions to Degree to conversions to float 192 193 template <class FromType> 193 194 struct ConverterFallback<FromType, orxonox::Degree>
Note: See TracChangeset
for help on using the changeset viewer.