Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Box Class Reference

Box is the same as the GEANT volume of the same name (except that full, rather than half, dimensions are specified) It is defined by six planes all perpendicular to axes. More...

#include <Box.h>

Inheritance diagram for Box:

Hexahedron Volume Shape SurfaceList GeomObject List of all members.

Public Methods

 Box ( double length, double width, double height )
 constructor: length along x, width along y, height along z. More...

void resize ( double length, double width, double height )
 resize Box: length along x, width along y, height along z. More...

double length () const
double width () const
double height () const
const Vectorxhat () const
const Vectoryhat () const
const Vectorzhat () const

Private Methods

void constructSurfaces ( double length, double width, double height )

Detailed Description

Box is the same as the GEANT volume of the same name (except that full, rather than half, dimensions are specified) It is defined by six planes all perpendicular to axes.

Definition at line 16 of file Box.h.


Constructor & Destructor Documentation

Box::Box ( double length,
double width,
double height )
 

constructor: length along x, width along y, height along z.

Definition at line 11 of file Box.cxx.


Member Function Documentation

void Box::constructSurfaces ( double length,
double width,
double height ) [private]
 

Definition at line 28 of file Box.cxx.

Referenced by Box(), and resize().

double Box::height ( ) const
 

Definition at line 46 of file Box.cxx.

double Box::length ( ) const
 

Definition at line 44 of file Box.cxx.

void Box::resize ( double length,
double width,
double height )
 

resize Box: length along x, width along y, height along z.

Definition at line 19 of file Box.cxx.

double Box::width ( ) const
 

Definition at line 45 of file Box.cxx.

const Vector & Box::xhat ( ) const
 

Definition at line 48 of file Box.cxx.

const Vector & Box::yhat ( ) const
 

Definition at line 49 of file Box.cxx.

const Vector & Box::zhat ( ) const
 

Definition at line 50 of file Box.cxx.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:18:23 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000