Changeset 2564 in Sophya for trunk/SophyaLib/TArray/tvector.h
- Timestamp:
- Jul 26, 2004, 7:30:40 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tvector.h
r2299 r2564 67 67 inline TVector<T>& operator = (T x) { SetT(x); return(*this); } 68 68 //! Add constant value \b x to vector elements 69 inline TVector<T>& operator += (T x) { Add (x); return(*this); }69 inline TVector<T>& operator += (T x) { AddCst(x,*this); return(*this); } 70 70 //! Substract constant value \b x to vector elements 71 inline TVector<T>& operator -= (T x) { Sub (x); return(*this); }71 inline TVector<T>& operator -= (T x) { SubCst(x,*this); return(*this); } 72 72 //! Multiply vector elements by constant value \b x 73 inline TVector<T>& operator *= (T x) { Mul (x); return(*this); }73 inline TVector<T>& operator *= (T x) { MulCst(x,*this); return(*this); } 74 74 //! Divide vector elements by constant value \b x 75 inline TVector<T>& operator /= (T x) { Div (x); return(*this); }75 inline TVector<T>& operator /= (T x) { DivCst(x,*this); return(*this); } 76 76 77 77 // operations avec matrices
Note:
See TracChangeset
for help on using the changeset viewer.