Changeset 176 for cpp/frams/genetics/fF/conv_fF.h
- Timestamp:
- 03/15/14 02:30:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fF/conv_fF.h
r174 r176 6 6 #define _CONV_FF_H_ 7 7 8 #define TOO_MUCH 0.759 #define TOO_LITTLE 0.108 #define fF_TOO_MUCH 0.75 9 #define fF_TOO_LITTLE 0.10 10 10 11 #define HOLE_RADIUS 0.05f12 #define LONGITUDE_NUM 6911 #define fF_HOLE_RADIUS 0.05f 12 #define fF_LONGITUDE_NUM 69 13 13 14 #define LATITUDE_NUM ((LONGITUDE_NUM - 1)*2)15 #define AMOUNT ((LATITUDE_NUM)*(LONGITUDE_NUM))14 #define fF_LATITUDE_NUM ((fF_LONGITUDE_NUM - 1)*2) 15 #define fF_AMOUNT ((fF_LATITUDE_NUM)*(fF_LONGITUDE_NUM)) 16 16 17 #define THICK_RATIO 0.9517 #define fF_THICK_RATIO 0.95 18 18 19 #define SIZE LONGITUDE_NUM * LATITUDE_NUM +LATITUDE_NUM19 #define fF_SIZE fF_LONGITUDE_NUM * fF_LATITUDE_NUM + fF_LATITUDE_NUM 20 20 21 21 #include <frams/util/multimap.h> … … 25 25 26 26 // The f9->f0 converter 27 28 27 class GenoConv_fF0 : public GenoConverter { 29 28 public: 30 31 32 33 29 GenoConv_fF0(); 30 ~GenoConv_fF0(); 31 //implementation of the GenoConverter method 32 SString convert(SString &in, MultiMap *map); 34 33 35 34 protected: 36 37 38 39 40 41 42 43 44 35 double* cosines; 36 double* sines; 37 void createSphere(int ktora, fF_chamber3d **chambers, double radius, double div_radius_length, double div_vector_length, 38 double alpha, double gamma, double kx, double ky, double kz); 39 double** generate_points(fF_chamber3d *chamber, int which, double kx, double ky, double kz); 40 void fill_cos_and_sin(); 41 double dist(double x1, double y1, double z1, double x2, double y2, double z2); 42 void search_hid(int nr, fF_chamber3d **spheres, double kx_, double ky_, double kz_); 43 int find_hole(int which, double x, double y, double z, fF_chamber3d **chambers, double kx_, double ky_, double kz_); 45 44 }; 46 45 47 46 #endif 48 49
Note: See TracChangeset
for help on using the changeset viewer.