Changeset 1003 for code/branches/core2/src/util/MultiTypeMath.cc
- Timestamp:
- Apr 8, 2008, 7:02:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/util/MultiTypeMath.cc
r1001 r1003 165 165 166 166 if (this->type_ == MT_vector2) 167 ConvertValue(&output, this->vector2_ , CP_FromType);167 ConvertValue(&output, this->vector2_); 168 168 else if (this->type_ == MT_vector3) 169 ConvertValue(&output, this->vector3_ , CP_FromType);169 ConvertValue(&output, this->vector3_); 170 170 else if (this->type_ == MT_colourvalue) 171 171 { std::cout << "3_1\n"; 172 ConvertValue(&output, this->colourvalue_ , CP_FromType);}172 ConvertValue(&output, this->colourvalue_);} 173 173 else if (this->type_ == MT_quaternion) 174 ConvertValue(&output, this->quaternion_ , CP_FromType);174 ConvertValue(&output, this->quaternion_); 175 175 else if (this->type_ == MT_radian) 176 176 ConvertValue(&output, this->radian_); … … 186 186 { 187 187 if (this->type_ == MT_vector2) 188 return ConvertValue(&this->vector2_, value, orxonox::Vector2(0, 0) , CP_FromType);188 return ConvertValue(&this->vector2_, value, orxonox::Vector2(0, 0)); 189 189 else if (this->type_ == MT_vector3) 190 return ConvertValue(&this->vector3_, value, orxonox::Vector3(0, 0, 0) , CP_FromType);190 return ConvertValue(&this->vector3_, value, orxonox::Vector3(0, 0, 0)); 191 191 else if (this->type_ == MT_colourvalue) 192 192 { std::cout << "4_1\n"; 193 return ConvertValue(&this->colourvalue_, value, orxonox::ColourValue(0, 0, 0, 0) , CP_FromType); }193 return ConvertValue(&this->colourvalue_, value, orxonox::ColourValue(0, 0, 0, 0)); } 194 194 else if (this->type_ == MT_quaternion) 195 return ConvertValue(&this->quaternion_, value, orxonox::Quaternion(1, 0, 0, 0) , CP_FromType);195 return ConvertValue(&this->quaternion_, value, orxonox::Quaternion(1, 0, 0, 0)); 196 196 else if (this->type_ == MT_radian) 197 197 return ConvertValue(&this->radian_, value, orxonox::Radian(0));
Note: See TracChangeset
for help on using the changeset viewer.