#ifndef PURECYLINDRICALCOORDINATE_HH #define PURECYLINDRICALCOORDINATE_HH // // $Id: PureCylindricalCoordinate.hpp,v 1.1 2004/02/27 02:57:35 mikeh Exp $ // // File: PureCylindricalCoordinate.hh // Purpose: Represent a 3D point in cylindrical coordinates. Now just a // thin shell around spacegeom/CylindricalPoint, but with no cosines // Created: 02-SEP-1997 John Hobbs // // $Revision: 1.1 $ // // // 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 PureCylindricalCoordinate: public PureCylindricalPoint { public: /// Default constructor. PureCylindricalCoordinate(): PureCylindricalPoint(0,0,0) {} /// Construct local point at $r$, $\phi$, $z$. PureCylindricalCoordinate(double r, double phi, double z): PureCylindricalPoint(r,phi,z) {} /// Copy constructor. PureCylindricalCoordinate(const SpacePoint& lpt): PureCylindricalPoint(lpt.rxy(),lpt.phi(),lpt.z()) {} }; } #endif // PURECYLINDRICALCOORDINATE_HH