Changeset 3196 for code/trunk/src/util/MathConvert.h
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/util/MathConvert.h
r2171 r3196 50 50 struct ConverterExplicit<orxonox::Vector2, std::string> 51 51 { 52 static bool convert(std::string* output, const orxonox::Vector2& input)52 FORCEINLINE static bool convert(std::string* output, const orxonox::Vector2& input) 53 53 { 54 54 std::ostringstream ostream; … … 66 66 struct ConverterExplicit<orxonox::Vector3, std::string> 67 67 { 68 static bool convert(std::string* output, const orxonox::Vector3& input)68 FORCEINLINE static bool convert(std::string* output, const orxonox::Vector3& input) 69 69 { 70 70 std::ostringstream ostream; … … 82 82 struct ConverterExplicit<orxonox::Vector4, std::string> 83 83 { 84 static bool convert(std::string* output, const orxonox::Vector4& input)84 FORCEINLINE static bool convert(std::string* output, const orxonox::Vector4& input) 85 85 { 86 86 std::ostringstream ostream; … … 98 98 struct ConverterExplicit<orxonox::Quaternion, std::string> 99 99 { 100 static bool convert(std::string* output, const orxonox::Quaternion& input)100 FORCEINLINE static bool convert(std::string* output, const orxonox::Quaternion& input) 101 101 { 102 102 std::ostringstream ostream; … … 114 114 struct ConverterExplicit<orxonox::ColourValue, std::string> 115 115 { 116 static bool convert(std::string* output, const orxonox::ColourValue& input)116 FORCEINLINE static bool convert(std::string* output, const orxonox::ColourValue& input) 117 117 { 118 118 std::ostringstream ostream; … … 156 156 struct ConverterFallback<orxonox::Radian, ToType> 157 157 { 158 static bool convert(ToType* output, const orxonox::Radian& input)158 FORCEINLINE static bool convert(ToType* output, const orxonox::Radian& input) 159 159 { 160 160 return convertValue<Ogre::Real, ToType>(output, input.valueRadians()); … … 166 166 struct ConverterFallback<orxonox::Degree, ToType> 167 167 { 168 static bool convert(ToType* output, const orxonox::Degree& input)168 FORCEINLINE static bool convert(ToType* output, const orxonox::Degree& input) 169 169 { 170 170 return convertValue<Ogre::Real, ToType>(output, input.valueDegrees()); … … 176 176 struct ConverterFallback<FromType, orxonox::Radian> 177 177 { 178 static bool convert(orxonox::Radian* output, const FromType& input)178 FORCEINLINE static bool convert(orxonox::Radian* output, const FromType& input) 179 179 { 180 180 float temp; … … 193 193 struct ConverterFallback<FromType, orxonox::Degree> 194 194 { 195 static bool convert(orxonox::Degree* output, const FromType& input)195 FORCEINLINE static bool convert(orxonox::Degree* output, const FromType& input) 196 196 { 197 197 float temp;
Note: See TracChangeset
for help on using the changeset viewer.