#include "TTRD1.h"
#include "TNode.h"
ClassImp(TTRD1)
TTRD1::TTRD1()
{
}
TTRD1::TTRD1(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, Float_t dy, Float_t dz)
: TBRIK(name, title,material,dx1,dy,dz)
{
fDx2 = dx2;
}
TTRD1::~TTRD1()
{
}
void TTRD1::SetPoints(Double_t *points) const
{
Float_t dx1, dx2, dy, dz;
dx1 = TBRIK::fDx;
dx2 = fDx2;
dy = TBRIK::fDy;
dz = TBRIK::fDz;
if (points) {
points[ 0] = -dx1 ; points[ 1] = -dy ; points[ 2] = -dz;
points[ 3] = -dx1 ; points[ 4] = dy ; points[ 5] = -dz;
points[ 6] = dx1 ; points[ 7] = dy ; points[ 8] = -dz;
points[ 9] = dx1 ; points[10] = -dy ; points[11] = -dz;
points[12] = -dx2 ; points[13] = -dy ; points[14] = dz;
points[15] = -dx2 ; points[16] = dy ; points[17] = dz;
points[18] = dx2 ; points[19] = dy ; points[20] = dz;
points[21] = dx2 ; points[22] = -dy ; points[23] = dz;
}
}
Last change: Wed Jun 25 08:53:55 2008
Last generated: 2008-06-25 08:53
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.