| 50 |  | #define MATH_REALSPHERICALHARMONIC_HPP | 
| 51 |  |  | 
| 52 |  | #include <string.h> | 
| 53 | < |  | 
| 53 | > | #include "config.h" | 
| 54 |  | #define RSH_SIN  0 | 
| 55 |  | #define RSH_COS  1 | 
| 56 |  |  | 
| 67 |  | void setM(int theM) { M = theM; }; | 
| 68 |  | int getM() { return M; } | 
| 69 |  |  | 
| 70 | < | void setCoefficient(double co) {coefficient = co;} | 
| 71 | < | double getCoefficient() {return coefficient;} | 
| 70 | > | void setCoefficient(RealType co) {coefficient = co;} | 
| 71 | > | RealType getCoefficient() {return coefficient;} | 
| 72 |  |  | 
| 73 |  | void setFunctionType(short int theType) {functionType = theType;} | 
| 74 |  | short int getFunctionType() { return functionType; } | 
| 79 |  | bool isSinFunction() { return functionType == RSH_SIN ? true : false;} | 
| 80 |  | bool isCosFunction() { return functionType == RSH_COS ? true : false;} | 
| 81 |  |  | 
| 82 | < | double getValueAt(double costheta, double phi); | 
| 82 | > | RealType getValueAt(RealType costheta, RealType phi); | 
| 83 |  |  | 
| 84 |  | protected: | 
| 85 |  |  | 
| 86 | < | double LegendreP (int l, int m, double x); | 
| 86 | > | RealType LegendreP (int l, int m, RealType x); | 
| 87 |  |  | 
| 88 |  | int L; | 
| 89 |  | int M; | 
| 90 |  | short int functionType; | 
| 91 | < | double coefficient; | 
| 91 | > | RealType coefficient; | 
| 92 |  |  | 
| 93 |  | }; | 
| 94 |  | } |