#include "hgeommatrix.h"
HGeomMatrix::HGeomMatrix(void) {
for (Int_t i=0;i<9;i++) fM[i]=0.0;
}
HGeomMatrix::~HGeomMatrix(void) {
}
Double_t HGeomMatrix::det(void) {
return (fM[0] * fM[4] * fM[8] + fM[1] * fM[5] * fM[6] + fM[3] *fM[7] * fM[2] -
fM[2] * fM[4] * fM[6] - fM[1] * fM[3] * fM[8] - fM[5] *fM[7] * fM[0]);
}
HGeomVector HGeomMatrix::operator*(HGeomVector &v) {
HGeomVector vo;
vo.setX(fM[0] * v.getX() + fM[1] * v.getY() + fM[2] * v.getZ());
vo.setY(fM[3] * v.getX() + fM[4] * v.getY() + fM[5] * v.getZ());
vo.setZ(fM[6] * v.getX() + fM[7] * v.getY() + fM[8] * v.getZ());
return vo;
}
HGeomMatrix &HGeomMatrix::operator/=(Double_t d) {
for (Int_t i=0;i<9;i++) fM[i]/=d;
return *this;
}
ClassImp(HGeomMatrix)
Last change: Sat May 22 12:56:22 2010
Last generated: 2010-05-22 12:56
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.