#ifndef CYLINDRICALCOORDINATE_HH #define CYLINDRICALCOORDINATE_HH // // $Id: CylindricalCoordinate.hpp,v 1.6 1998/10/16 02:57:45 hobbs Exp $ // // File: CylindricalCoordinate.hh // Purpose: Represent a 3D point in cylindrical coordinates. Now just a // thin shell around spacegeom/CylindricalPoint // Created: 02-SEP-1997 John Hobbs // // $Revision: 1.6 $ // // // Include files #include #include namespace dgs { /** A SpacePoint in cylindrical coordinates. A cylindrical coordinate is specified by a radius $r$ (distance from the origin), an angle $\phi$ and a position along the $z$ axis. The angle $\phi$ is measured in the $(x,y)$ plane, with $\phi = 0$ being the $x$ axis, and $\phi = \pi/2$ the $y$ axis. */ class CylindricalCoordinate: public CylindricalPoint { public: /// Default constructor. CylindricalCoordinate(): CylindricalPoint(0,0,0) {} /// Construct local point at $r$, $\phi$, $z$. CylindricalCoordinate(double r, double phi, double z): CylindricalPoint(r,phi,z) {} /// Copy constructor. CylindricalCoordinate(const SpacePoint& lpt): CylindricalPoint(lpt.rxy(),lpt.phi(),lpt.z()) {} }; } #endif // CYLINDRICALCOORDINATE_HH