Changeset 3541 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.cc
- Timestamp:
- Mar 14, 2005, 12:39:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.cc
r3473 r3541 21 21 22 22 #include "vector.h" 23 23 #include "debug.h" 24 24 25 25 using namespace std; … … 201 201 } 202 202 203 204 203 /** 205 204 \brief calculate the angle between two vectors in radiances … … 225 224 f = acos( v1 * v2 / (v1.len() * v2.len())); 226 225 return f * 180 / PI; 226 } 227 228 229 /** 230 \brief Outputs the values of the Vector 231 */ 232 void Vector::debug(void) 233 { 234 PRINT(0)("Vector Debug information\n"); 235 PRINT(0)("x: %f; y: %f; z: %f", x, y, z); 236 PRINT(3)(" lenght: %f", len()); 237 PRINT(0)("\n"); 227 238 } 228 239 … … 581 592 582 593 /** 594 \brief outputs some nice formated debug information about this quaternion 595 */ 596 void Quaternion::debug(void) 597 { 598 PRINT(0)("Quaternion Debug Information\n"); 599 PRINT(0)("real a=%f; imag: x=%f y=%f z=%f\n", w, v.x, v.y, v.z); 600 } 601 602 /** 583 603 \brief create a rotation from a vector 584 604 \param v: a vector
Note: See TracChangeset
for help on using the changeset viewer.