Changeset 178 for cpp/frams/genetics/fF/conv_fF.h
- Timestamp:
- 03/17/14 00:57:50 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fF/conv_fF.h
r176 r178 24 24 #include "fF_chamber3d.h" 25 25 26 27 //A point on the surface of a chamber 28 struct fF_point 29 { 30 double x, y, z; 31 bool inside; //helper field used when computing whether this point is inside some chamber 32 }; 33 34 26 35 // The f9->f0 converter 27 36 class GenoConv_fF0 : public GenoConverter { … … 33 42 34 43 protected: 35 double* cosines;36 double* sines;37 44 void createSphere(int ktora, fF_chamber3d **chambers, double radius, double div_radius_length, double div_vector_length, 38 45 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(); 46 fF_point* generate_points(fF_chamber3d *chamber, int which, double kx, double ky, double kz); 41 47 double dist(double x1, double y1, double z1, double x2, double y2, double z2); 42 48 void search_hid(int nr, fF_chamber3d **spheres, double kx_, double ky_, double kz_); 43 49 int find_hole(int which, double x, double y, double z, fF_chamber3d **chambers, double kx_, double ky_, double kz_); 50 51 private: 52 double* cosines; 53 double* sines; 54 void precompute_cos_and_sin(); 44 55 }; 45 56
Note: See TracChangeset
for help on using the changeset viewer.