Changes in src/vector.cpp [9d5ddf:421a1f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/vector.cpp
r9d5ddf r421a1f 193 193 (*this) *= 1/factor; 194 194 }; 195 196 Vector Vector::getNormalized() const{ 197 Vector res= *this; 198 res.Normalize(); 199 return res; 200 } 195 201 196 202 /** Zeros all components of this vector. … … 534 540 // some comonly used vectors 535 541 const 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); 542 const 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.