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

Cons.cxx

Go to the documentation of this file.
00001 //  $Header: /nfs/slac/g/glast/ground/cvs/geometry/src/Cons.cxx,v 1.1.1.1 1999/12/20 22:28:06 burnett Exp $
00002 //   Author: T. Burnett
00003 //
00004 
00005 #include "geometry/Cons.h"
00006 #include "geometry/Wedge.h"
00007 
00008 
00009 Cons::Cons( double l, double ri1, double ro1, double ri2, double ro2,
00010             double ph1, double ph2 )
00011 : Cone(l,ri1,ro1,ri2,ro2)
00012 {
00013   addSurface(new Wedge(center(), axis(), ph1, ph2));
00014 }
00015 
00016 double Cons::angle1() const
00017 {    int numSurf = surfaceCount();
00018      Wedge *wedge =   (Wedge *)&surface(numSurf-1);
00019      const Vector *normal  = &wedge->n1();
00020      return normal->phi();
00021 }
00022 
00023 double Cons::angle2() const
00024 {    int numSurf = surfaceCount();
00025      Wedge *wedge =   (Wedge *)&surface(numSurf-1);
00026      const Vector *normal  = &wedge->n2();
00027      return normal->phi();
00028 }
00029 
00030 void Cons::printOn( std::ostream&  ) const
00031 {
00032 }
00033 
00034 
00035 

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