Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9090 in orxonox.OLD for branches/presentation/src/lib/math/vector.cc


Ignore:
Timestamp:
Jul 4, 2006, 2:26:42 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: valgrind fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/lib/math/vector.cc

    r6617 r9090  
    4040Vector Vector::getNormalized() const
    4141{
    42   float l = this->len();
    43   if(unlikely(l == 1.0 || l == 0.0))
     42  float length = this->len();
     43  if (unlikely(length == 0.0))
    4444    return *this;
    4545  else
    46     return (*this / l);
     46    return (*this / length);
    4747}
    4848
Note: See TracChangeset for help on using the changeset viewer.