File indexing completed on 2024-04-06 12:04:14
0001 #ifndef _Surface_MEDIUMPROPERTIES_H_
0002 #define _Surface_MEDIUMPROPERTIES_H_
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 class MediumProperties {
0013 public:
0014 MediumProperties() : theRadLen(0), theXi(0) {}
0015 MediumProperties(float aRadLen, float aXi) : theRadLen(aRadLen), theXi(aXi) {}
0016 ~MediumProperties() {}
0017
0018
0019
0020 float radLen() const { return theRadLen; }
0021
0022
0023
0024 float xi() const { return theXi; }
0025
0026 bool isValid() const { return theRadLen != 0 || theXi != 0; }
0027
0028 private:
0029 float theRadLen;
0030 float theXi;
0031 };
0032 #endif