26 ost <<
"(" << mat.
m_scalar <<
" [" << mat.
m_vec(0) <<
" " << mat.
m_vec(1) <<
" " << mat.
m_vec(2) <<
"])" << flush;
33 if(i < 0 || i >= 4 || j < 0 || j >= 4)
35 cerr <<
"matrix size error at operator ()" << endl;
39 if(i<3 && j<3)
return m_mat(i,j);
40 else if(i<3 && j==3)
return m_vec(i);
41 else if(i==3 && j==3)
return m_scalar;
48 if(i < 0 || i >= 4 || j < 0 || j >= 4)
50 cerr <<
"matrix size error at operator ()" << endl;
54 if(i<3 && j<3)
return m_mat(i,j);
55 else if(i<3 && j==3)
return m_vec(i);
56 else if(i==3 && j==3)
return m_scalar;
173 cerr <<
"vector size error at operator ()" << endl;
177 if(i<3)
return m_vec(i);
187 cerr <<
"vector size error at operator ()" << endl;
191 if(i<3)
return m_vec(i);
206 for(i=0; i<4; i++) (*
this)(
i) = d;
friend ostream & operator<<(ostream &ost, const fVec4 &mat)
void add(const fVec3 &vec1, const fVec3 &vec2)
fVec4 operator=(const fVec4 &vec)
friend fVec3 & Vec(fVec4 &vec)
void mul(fVec4 &_vec, double d)
void zero()
Creates a zero vector.
friend double & Scalar(fVec4 &vec)
void cross(const fVec3 &vec1, const fVec3 &vec2)
Cross product.
void add(const fVec4 &vec1, const fVec4 &vec2)
void operator-=(const fVec4 &)
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
void operator+=(const fVec4 &)
double & operator()(int i, int j)
void operator-=(const fMat44 &)
fMat44 operator=(const fMat44 &mat)
friend double operator*(const fVec4 &, const fVec4 &)
void operator+=(const fMat44 &)
void cross(const fVec4 &vec1, const fVec4 &vec2)
void sub(const fVec4 &vec1, const fVec4 &vec2)
friend fVec4 operator-(const fVec4 &)
double & operator()(int i)
void sub(const fVec3 &vec1, const fVec3 &vec2)
void mul(const fVec3 &vec, double d)
friend fVec4 operator+(const fVec4 &, const fVec4 &)