00001 #ifndef St_l3_Coordinates_hh
00002 #define St_l3_Coordinates_hh
00003
00004 #include "Stiostream.h"
00005
00006 class St_l3_xyz_Coordinate {
00007
00008 private:
00009 double xyz[3] ;
00010
00011 public:
00012 St_l3_xyz_Coordinate() { xyz[0] = xyz[1] = xyz[2] = 0 ; } ;
00013 St_l3_xyz_Coordinate(double X, double Y, double Z )
00014 {
00015 xyz[0] = X ;
00016 xyz[1] = Y ;
00017 xyz[2] = Z ;
00018 }
00019
00020
00021
00022 double Getx() const { return xyz[0] ; } ;
00023 double Gety() const { return xyz[1] ; } ;
00024 double Getz() const { return xyz[2] ; } ;
00025 double* Getxyz() { return xyz ; } ;
00026 void Setx(double X) { xyz[0] = X ; } ;
00027 void Sety(double Y) { xyz[1] = Y ; } ;
00028 void Setz(double Z) { xyz[2] = Z ; } ;
00029 void Setxyz(double X, double Y, double Z )
00030 {
00031 xyz[0] = X ;
00032 xyz[1] = Y ;
00033 xyz[2] = Z ;
00034 }
00035
00036 } ;
00037
00038 class St_l3_ptrs_Coordinate {
00039 private:
00040 double ptrs[4] ;
00041
00042 public:
00043 St_l3_ptrs_Coordinate() { ptrs[0] = ptrs[1] = ptrs[2] = ptrs[3] = 0 ; } ;
00044 St_l3_ptrs_Coordinate(double P,double T, double R, double S )
00045 {
00046 ptrs[0] = P ;
00047 ptrs[1] = T ;
00048 ptrs[2] = R ;
00049 ptrs[3] = S ;
00050 } ;
00051
00052
00053
00054 double Getp() const { return ptrs[0] ; } ;
00055 double Gett() const { return ptrs[1] ; } ;
00056 double Getr() const { return ptrs[2] ; } ;
00057 double Gets() const { return ptrs[3] ; } ;
00058 double* Getptrs() { return ptrs ; } ;
00059
00060 void Setp(double P) { ptrs[0] = P ; } ;
00061 void Sett(double T) { ptrs[1] = T ; } ;
00062 void Setr(double R) { ptrs[2] = R ; } ;
00063 void Sets(double S) { ptrs[3] = S ; } ;
00064 void Setptrs(double P,double T, double R, double S )
00065 {
00066 ptrs[0] = P ;
00067 ptrs[1] = T ;
00068 ptrs[2] = R ;
00069 ptrs[3] = S ;
00070 } ;
00071 } ;
00072
00073 #endif //St_l3_Coordinates_hh