Changeset 854 for code/branches/core/src/util/MultiTypeMath.cc
- Timestamp:
- Mar 5, 2008, 7:38:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/util/MultiTypeMath.cc
r853 r854 95 95 MultiTypeMath::operator orxonox::Vector3() const 96 96 { 97 std::cout << "4_2: Convert MultiTypeMath to Vector3:" << std::endl;98 std::cout << " MultiTypeMath has type " << this->getType() << std::endl;99 std::cout << MT_vector3 << std::endl;100 std::cout << MT_string << std::endl;101 std::cout << MT_vector2 << std::endl;102 std::cout << MT_int << std::endl;103 std::cout << MT_uint << std::endl;104 std::cout << MT_null << std::endl;105 if (this->type_ == MT_vector3)106 {107 std::cout << " MultiTypeMath contains already a Vector3" << std::endl;108 std::cout << " Returnvalue is " << this->vector3_ << std::endl;109 }110 else111 {112 std::cout << " MultiTypeMath doesn't contain a Vector3" << std::endl;113 std::cout << " Returnvalue is " << ConvertValueAndReturn<MultiTypeMath, orxonox::Vector3>(*this) << std::endl;114 std::cout << " Returnvalue was " << ConvertValueAndReturn<MultiTypePrimitive, orxonox::Vector3>(*this) << std::endl;115 }116 97 return (this->type_ == MT_vector3) ? this->vector3_ : ConvertValueAndReturn<MultiTypeMath, orxonox::Vector3>(*this); 117 98 }
Note: See TracChangeset
for help on using the changeset viewer.