Show
Ignore:
Timestamp:
09/26/02 20:41:15 (6 years ago)
Author:
patrickh
Message:

Move overloaded operators into the header so that they can actually
be used. Inlining them in the .cpp file wasn't terribly useful to
anyone.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/RELENG_1_0/juggler_1.0/Math/vjMatrix.cpp

    r8789 r10845  
    632632} 
    633633 
    634 inline vjMatrix operator *(float _s, const vjMatrix& _m) { 
    635     vjMatrix dst; dst.scale(_s, _m); return dst; 
    636 } 
    637  
    638 inline vjMatrix operator *(const vjMatrix& _m, float _s) { 
    639     vjMatrix dst; dst.scale(_s, _m); return dst; 
    640 } 
    641  
    642 inline vjMatrix operator /(const vjMatrix& _m, float _s) { 
    643     vjMatrix dst; dst.scale(1.0f/_s, _m); return dst; 
    644 } 
    645  
    646634    // Matrix Multiplication of A:(nxl) B:(lxm) ==> C:(nxm) 
    647635    //   Cij = Sum(k=1,l) (Aik)(Bkj) 
  • branches/RELENG_1_0/juggler_1.0/Math/vjMatrix.h

    r8789 r10845  
    456456}; 
    457457 
     458inline vjMatrix operator* (float _s, const vjMatrix& _m) 
     459{ 
     460   vjMatrix dst; 
     461   dst.scale(_s, _m); return dst; 
     462} 
     463 
     464inline vjMatrix operator* (const vjMatrix& _m, float _s) 
     465{ 
     466   vjMatrix dst; 
     467   dst.scale(_s, _m); return dst; 
     468} 
     469 
     470inline vjMatrix operator/ (const vjMatrix& _m, float _s) 
     471{ 
     472   vjMatrix dst; 
     473   dst.scale(1.0f/_s, _m); return dst; 
     474} 
     475 
    458476#endif