Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3234 in orxonox.OLD


Ignore:
Timestamp:
Dec 20, 2004, 12:59:18 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/vector.cc

    r3228 r3234  
    243243
    244244/**
    245    \brief calculates a look_at rotation
     245   \brief calculates a lookAt rotation
    246246   \param dir: the direction you want to look
    247247   \param up: specify what direction up should be
     
    578578  Vector axis = x.cross( v);
    579579  axis.normalize();
    580   float angle = angle_rad( x, v);
     580  float angle = angleRad( x, v);
    581581  float ca = cos(angle);
    582582  float sa = sin(angle);
     
    761761  Vector* fp = new Vector[2];
    762762  Plane p = Plane (r + a.cross(l.a), r, r + a);
    763   fp[1] = p.intersect_line (l);
     763  fp[1] = p.intersectLine (l);
    764764  p = Plane (fp[1], l.a);
    765   fp[0] = p.intersect_line (*this);
     765  fp[0] = p.intersectLine (*this);
    766766  return fp;
    767767}
     
    783783{
    784784  Vector t = a + r;
    785   t = rotate_vector( t, rot);
    786   r = rotate_vector( r, rot),
     785  t = rotateVector( t, rot);
     786  r = rotateVector( r, rot),
    787787  a = t - r;
    788788}
Note: See TracChangeset for help on using the changeset viewer.