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

Box.h

Go to the documentation of this file.
00001 //  $Header: /nfs/slac/g/glast/ground/cvs/geometry/geometry/Box.h,v 1.2 2000/01/18 00:42:04 burnett Exp $
00002 //   Author: Toby Burnett
00003 //  Project: geometry
00004 //
00005 
00006 #ifndef BOX_H
00007 #define BOX_H
00008 
00009 #include "geometry/Hexahedron.h"
00010 
00016 class Box: public Hexahedron
00017 {
00018 
00019  public:
00021    Box( double length, double width, double height );
00022 
00024    void resize( double length, double width, double height );
00025 
00026    double length()const;
00027    double width() const;
00028    double height()const;
00029    // return dimensions
00030 
00031    const Vector& xhat()const;
00032    const Vector& yhat()const;
00033    const Vector& zhat()const;
00034    // return references to the (original) x,y,z directions
00035 
00036  private:
00037    void constructSurfaces( double length, double width, double height );
00038    // make the 6 planes for this Box
00039 };
00040 
00041 #endif //BOX_H
00042 

Generated at Mon Nov 26 18:18:20 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000