Changeset 5008 in orxonox.OLD for orxonox/trunk/src/lib/math
- Timestamp:
- Aug 14, 2005, 2:46:29 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.h
r5006 r5008 1 1 /*! 2 \file vector.h3 *A basic 3D math framework4 5 2 * @file vector.h 3 * A basic 3D math framework 4 * 5 * Contains classes to handle vectors, lines, rotations and planes 6 6 */ 7 7 … … 107 107 inline float angleRad (const Vector& v1, const Vector& v2) { return acos( v1 * v2 / (v1.len() * v2.len())) * 180/M_PI; }; 108 108 109 /** an easy way to create a Random Vector @param sideLength the length of the Vector (x not sqrt(x^2...)) */ 110 #define VECTOR_RAND(sideLength) (Vector((float)rand()/RAND_MAX -.5, (float)rand()/RAND_MAX -.5, (float)rand()/RAND_MAX -.5) * sideLength) 111 109 112 110 113 //! Quaternion
Note: See TracChangeset
for help on using the changeset viewer.