Go to the source code of this file.
Functions | |
| mat | operator+ (const mat &m1, const mat &m2) |
| mat | operator- (const mat &m1, const mat &m2) |
| mat | operator * (const mat &m1, const mat &m2) |
|
||||||||||||
|
mat+mat operator Definition at line 49 of file mat-mat.hpp. 00050 {
00051 return mat( m1.xx+m2.xx, m1.xy+m2.xy, m1.xz+m2.xz,
00052 m1.yx+m2.yx, m1.yy+m2.yy, m1.yz+m2.yz,
00053 m1.zx+m2.zx, m1.zy+m2.zy, m1.zz+m2.zz );
00054 }
|
|
||||||||||||
|
mat-mat operator Definition at line 58 of file mat-mat.hpp. 00059 {
00060 return mat( m1.xx-m2.xx, m1.xy-m2.xy, m1.xz-m2.xz,
00061 m1.yx-m2.yx, m1.yy-m2.yy, m1.yz-m2.yz,
00062 m1.zx-m2.zx, m1.zy-m2.zy, m1.zz-m2.zz );
00063 }
|
|
||||||||||||
|
mat*mat operator Definition at line 67 of file mat-mat.hpp. 00068 {
00069 return mat( m1.xx*m2.xx +m1.xy*m2.yx +m1.xz*m2.zx,
00070 m1.xx*m2.xy +m1.xy*m2.yy +m1.xz*m2.zy,
00071 m1.xx*m2.xz +m1.xy*m2.yz +m1.xz*m2.zz,
00072 m1.yx*m2.xx +m1.yy*m2.yx +m1.yz*m2.zx,
00073 m1.yx*m2.xy +m1.yy*m2.yy +m1.yz*m2.zy,
00074 m1.yx*m2.xz +m1.yy*m2.yz +m1.yz*m2.zz,
00075 m1.zx*m2.xx +m1.zy*m2.yx +m1.zz*m2.zx,
00076 m1.zx*m2.xy +m1.zy*m2.yy +m1.zz*m2.zy,
00077 m1.zx*m2.xz +m1.zy*m2.yz +m1.zz*m2.zz );
00078 }
|
1.4.1