Back to index

See source file

PHCylPoint.h

 
#ifndef PHCYLPOINT_H 
#define PHCYLPOINT_H 
 
//--------------------------------------------------------------------------------------- 
// Class:  PHCylPoint header 
// 
// Created by:  Jane M. Burward-Hoy and Federica Messer 
// 
// Purpose: The Phenix 3D Cylindrical  point  
//  
// Last update:  10/19/99 
//-------------------------------------------------------------------------------------- 
#include <iostream.h> 
#include "PHAngle.h" 
 
class PHPoint; 
class PHSphPoint; 
 
class PHCylPoint  
{ 
public: 
  PHCylPoint(); 
  PHCylPoint(double r0,  double  p0, double z0); 
  PHCylPoint(double r0,  PHAngle p0, double z0); 
  PHCylPoint(const PHCylPoint &);  
  PHCylPoint(const PHPoint &); 
  PHCylPoint(const PHSphPoint &); 
 
  PHCylPoint& operator= (const PHPoint&); 
  PHCylPoint& operator= (const PHCylPoint&);  
  PHCylPoint& operator= (const PHSphPoint&); 
 
   double dist(const PHCylPoint &);           //Distance between two points 
  ~PHCylPoint(); 
   
  void  print() const; 
  friend ostream& operator<<(ostream&, PHCylPoint &);  
 
  void  setR(double val)      { r = val;} 
  void  setPhi(PHAngle val)   { phi = val;} 
  void  setPhi(double val)    { phi = (PHAngle) val;} 
  void  setZ(double val)      { z = val;}  
 
  double  getR()   const   {return r;} 
  PHAngle getPhi() const   {return phi;} 
  double  getZ()   const   {return z;} 
 
   
private: 
 
  double r; 
  PHAngle phi; 
  double z; 
 
}; 
 
 
#endif  /* PHCYLPOINT_H */ 
 
 

Back to index

See source file