Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5008 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.h


Ignore:
Timestamp:
Aug 14, 2005, 2:46:29 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better coloring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/math/vector.h

    r5006 r5008  
    11/*!
    2     \file vector.h
    3   * A basic 3D math framework
    4 
    5    Contains classes to handle vectors, lines, rotations and planes
     2 * @file vector.h
     3 * A basic 3D math framework
     4 *
     5 * Contains classes to handle vectors, lines, rotations and planes
    66*/
    77
     
    107107inline float angleRad (const Vector& v1, const Vector& v2) { return acos( v1 * v2 / (v1.len() * v2.len())) * 180/M_PI; };
    108108
     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
    109112
    110113//! Quaternion
Note: See TracChangeset for help on using the changeset viewer.