Changeset 2564 in Sophya for trunk/SophyaLib/TArray/tvector.h


Ignore:
Timestamp:
Jul 26, 2004, 7:30:40 PM (21 years ago)
Author:
ansari
Message:

Remplacement methodes Add/Mul/Sub/Div(T x) par AddCst/MulCst/SubCst/DivCst(T x, TArray<T> res) ds TArray - Reza 26 Juillet 2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tvector.h

    r2299 r2564  
    6767  inline  TVector<T>&  operator = (T x)             { SetT(x); return(*this); }
    6868  //! 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); }
    7070  //! 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); }
    7272  //! 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); }
    7474  //! 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); }
    7676
    7777  //  operations avec matrices
Note: See TracChangeset for help on using the changeset viewer.