Example #1
0
IMatrix3 IMatrix3::operator * (const IMatrix3& m) const
{
    const IVector3& mc0 = m.getColumn(0);
    const IVector3& mc1 = m.getColumn(1);
    const IVector3& mc2 = m.getColumn(2);

    return IMatrix3(IVector3(v_[0].dot(mc0), v_[0].dot(mc1), v_[0].dot(mc2)),
                    IVector3(v_[1].dot(mc0), v_[1].dot(mc1), v_[1].dot(mc2)),
                    IVector3(v_[2].dot(mc0), v_[2].dot(mc1), v_[2].dot(mc2)));
}
IMatrix3 TMatrix3::getTightBound(FCL_REAL l, FCL_REAL r) const
{
  return IMatrix3(v_[0].getTightBound(l, r), v_[1].getTightBound(l, r), v_[2].getTightBound(l, r));
}
IMatrix3 TMatrix3::getTightBound() const
{
  return IMatrix3(v_[0].getTightBound(), v_[1].getTightBound(), v_[2].getTightBound());
}
IMatrix3 TMatrix3::getBound(FCL_REAL t) const
{
  return IMatrix3(v_[0].getBound(t), v_[1].getBound(t), v_[2].getBound(t));
}
Example #5
0
IMatrix3 IMatrix3::operator - (const IMatrix3& m) const
{
    return IMatrix3(v_[0] - m.v_[0], v_[1] - m.v_[1], v_[2] - m.v_[2]);
}
Example #6
0
IMatrix3 IMatrix3::operator + (const IMatrix3& m) const
{
    return IMatrix3(v_[0] + m.v_[0], v_[1] + m.v_[1], v_[2] + m.v_[2]);
}