#include "TTRD2.h"
#include "TNode.h"
ClassImp(TTRD2)
// Begin_Html <P ALIGN=CENTER> <IMG SRC="gif/trd2.gif"> </P> End_Html
TTRD2::TTRD2()
{
}
TTRD2::TTRD2(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, Float_t dy1,
Float_t dy2, Float_t dz) : TBRIK(name, title,material,dx1,dy1,dz)
{
fDx2 = dx2;
fDy2 = dy2;
}
TTRD2::~TTRD2()
{
}
void TTRD2::SetPoints(Double_t *points) const
{
Float_t dx1, dx2, dy1, dy2, dz;
dx1 = TBRIK::fDx;
dx2 = fDx2;
dy1 = TBRIK::fDy;
dy2 = fDy2;
dz = TBRIK::fDz;
if (points) {
points[ 0] = -dx1 ; points[ 1] = -dy1 ; points[ 2] = -dz;
points[ 3] = -dx1 ; points[ 4] = dy1 ; points[ 5] = -dz;
points[ 6] = dx1 ; points[ 7] = dy1 ; points[ 8] = -dz;
points[ 9] = dx1 ; points[10] = -dy1 ; points[11] = -dz;
points[12] = -dx2 ; points[13] = -dy2 ; points[14] = dz;
points[15] = -dx2 ; points[16] = dy2 ; points[17] = dz;
points[18] = dx2 ; points[19] = dy2 ; points[20] = dz;
points[21] = dx2 ; points[22] = -dy2 ; points[23] = dz;
}
}
ROOT page - Class index - Class Hierarchy - Top of the page
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.