Changeset 185
- Timestamp:
- 03/19/14 00:14:52 (11 years ago)
- Location:
- cpp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/Convert.h
r122 r185 33 33 static double toRadians(double kat) {return kat*M_PI/180;} 34 34 static double toDegrees(double kat) {return kat/M_PI*180;} 35 static double atan_2(double y,double x) {if (x==0 && y==0) return 0; else return atan2(y,x);} 35 static double atan_2(double y,double x) {if (x==0 && y==0) return 0; else return atan2(y,x);} //needed by borland 5/6 only? 36 36 37 37 static double odleglosc_sq(double x1,double y1,double x2,double y2) //odleglosc do kwadratu, wystarczy do porownywania … … 75 75 76 76 77 78 77 #endif -
cpp/frams/genetics/fF/conv_fF.cpp
r178 r185 7 7 #include <frams/model/model.h> 8 8 #include <common/nonstd_stl.h> 9 #include <common/Convert.h> 9 10 10 11 GenoConv_fF0::GenoConv_fF0() … … 126 127 double angle; 127 128 128 angle = atan2(pzyprim, pzxprim);129 angle = Convert::atan_2(pzyprim, pzxprim); 129 130 double alpha = angle - alpha_; 130 131
Note: See TracChangeset
for help on using the changeset viewer.