00001
00002
00003 inline mat& mat::operator*=(const double& d)
00004 {
00005 xx*=d; xy*=d; xz*=d;
00006 yx*=d; yy*=d; yz*=d;
00007 zx*=d; zy*=d; zz*=d;
00008 return *this;
00009 }
00010
00011
00012
00013 inline mat& mat::operator/=(const double& d)
00014 {
00015 xx/=d; xy/=d; xz/=d;
00016 yx/=d; yy/=d; yz/=d;
00017 zx/=d; zy/=d; zz/=d;
00018 return *this;
00019 }
00020
00021
00022
00023
00024
00025
00026
00027 inline mat operator*(const mat& m, const double& d)
00028 {
00029 return mat( m.xx*d, m.xy*d, m.xz*d,
00030 m.yx*d, m.yy*d, m.yz*d,
00031 m.zx*d, m.zy*d, m.zz*d );
00032 }
00033
00034
00035
00036 inline mat operator/(const mat& m, const double& d)
00037 {
00038 return mat( m.xx/d, m.xy/d, m.xz/d,
00039 m.yx/d, m.yy/d, m.yz/d,
00040 m.zx/d, m.zy/d, m.zz/d );
00041 }