Changeset 10158 in orxonox.OLD for branches/ai/src/lib
- Timestamp:
- Jan 2, 2007, 9:47:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/lib/math/vector.h
r9110 r10158 114 114 * @return the angle between the vectors in radians 115 115 */ 116 inline float angle Deg(const Vector& v1, const Vector& v2) { return acos( v1 * v2 / (v1.len() * v2.len())); };116 inline float angleRad (const Vector& v1, const Vector& v2) { return acos( v1 * v2 / (v1.len() * v2.len())); }; 117 117 /** 118 118 * calculate the angle between two vectors in degrees … … 121 121 * @return the angle between the vectors in degrees 122 122 */ 123 inline float angle Rad(const Vector& v1, const Vector& v2) { return acos( v1 * v2 / (v1.len() * v2.len())) * 180/M_PI; };123 inline float angleDeg (const Vector& v1, const Vector& v2) { return acos( v1 * v2 / (v1.len() * v2.len())) * 180/M_PI; }; 124 124 125 125 /** an easy way to create a Random Vector @param sideLength the length of the Vector (x not sqrt(x^2...)) */
Note: See TracChangeset
for help on using the changeset viewer.