Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vector.cpp

    r9d5ddf r421a1f  
    193193  (*this) *= 1/factor;
    194194};
     195
     196Vector Vector::getNormalized() const{
     197  Vector res= *this;
     198  res.Normalize();
     199  return res;
     200}
    195201
    196202/** Zeros all components of this vector.
     
    534540// some comonly used vectors
    535541const Vector zeroVec(0,0,0);
    536 const Vector e1(1,0,0);
    537 const Vector e2(0,1,0);
    538 const Vector e3(0,0,1);
     542const Vector unitVec[NDIM]={Vector(1,0,0),Vector(0,1,0),Vector(0,0,1)};
Note: See TracChangeset for help on using the changeset viewer.