Changeset 9092 in orxonox.OLD for branches/presentation/src/lib/math
- Timestamp:
- Jul 4, 2006, 2:38:00 AM (19 years ago)
- Location:
- branches/presentation/src/lib/math
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/math/curve.cc
r5232 r9092 29 29 #include "debug.h" 30 30 31 #include < math.h>31 #include <cmath> 32 32 #include <stdio.h> 33 33 -
branches/presentation/src/lib/math/line.h
r6617 r9092 24 24 #define __LINE_H_ 25 25 26 #include <math.h>27 26 #include "compiler.h" 28 27 #include "vector.h" -
branches/presentation/src/lib/math/matrix.cc
r7711 r9092 14 14 */ 15 15 #include "matrix.h" 16 #include < math.h>16 #include <cmath> 17 17 18 18 #ifdef DEBUG -
branches/presentation/src/lib/math/matrix.h
r5698 r9092 4 4 */ 5 5 6 #include <math.h>7 6 #include "vector.h" 8 7 -
branches/presentation/src/lib/math/plane.h
r7711 r9092 24 24 #define __PLANE_H_ 25 25 26 #include <math.h>27 26 #include "compiler.h" 28 27 #include "vector.h" -
branches/presentation/src/lib/math/quaternion.h
r9090 r9092 24 24 #define __QUATERNION_H_ 25 25 26 #include <math.h>27 26 #include "compiler.h" 28 27 //! PI the circle-constant -
branches/presentation/src/lib/math/vector.cc
r9090 r9092 29 29 #endif 30 30 31 using namespace std;32 31 33 32 ///////////// -
branches/presentation/src/lib/math/vector.h
r9090 r9092 24 24 #define __VECTOR_H_ 25 25 26 #include < math.h>26 #include <cmath> 27 27 #include "compiler.h" 28 28 //! PI the circle-constant … … 89 89 void scale(const Vector& v) { x *= v.x; y *= v.y; z *= v.z; }; 90 90 /** @returns the length of the vector */ 91 inline float len() const { return sqrt (x*x +y*y+z*z); }91 inline float len() const { return sqrt (x*x + y*y + z*z); } 92 92 /** normalizes the vector */ 93 93 inline void normalize() { float l = len(); if( unlikely(l == 0.0))return; this->x=this->x/l; this->y=this->y/l; this->z=this->z/l; };
Note: See TracChangeset
for help on using the changeset viewer.