Changeset 10845 for branches/RELENG_1_0/juggler_1.0/Math
- Timestamp:
- 09/26/02 20:41:15 (6 years ago)
- Files:
-
- branches/RELENG_1_0/juggler_1.0/Math/vjMatrix.cpp (modified) (1 diff)
- branches/RELENG_1_0/juggler_1.0/Math/vjMatrix.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/RELENG_1_0/juggler_1.0/Math/vjMatrix.cpp
r8789 r10845 632 632 } 633 633 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 646 634 // Matrix Multiplication of A:(nxl) B:(lxm) ==> C:(nxm) 647 635 // Cij = Sum(k=1,l) (Aik)(Bkj) branches/RELENG_1_0/juggler_1.0/Math/vjMatrix.h
r8789 r10845 456 456 }; 457 457 458 inline vjMatrix operator* (float _s, const vjMatrix& _m) 459 { 460 vjMatrix dst; 461 dst.scale(_s, _m); return dst; 462 } 463 464 inline vjMatrix operator* (const vjMatrix& _m, float _s) 465 { 466 vjMatrix dst; 467 dst.scale(_s, _m); return dst; 468 } 469 470 inline vjMatrix operator/ (const vjMatrix& _m, float _s) 471 { 472 vjMatrix dst; 473 dst.scale(1.0f/_s, _m); return dst; 474 } 475 458 476 #endif
