diff options
| author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-05-10 15:06:50 +0000 | 
|---|---|---|
| committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-05-10 15:06:50 +0000 | 
| commit | 2ff3057cf1de8695f2fc6cf5c17a3d074e983017 (patch) | |
| tree | 3c51b9f8b670796e78225a874eacc4447d52ef84 | |
| parent | 0ff4ddc70238e5344b3048214e6391675a6986d6 (diff) | |
Empty log message 
| -rw-r--r-- | src/Panorama.cxx | 40 | 
1 files changed, 20 insertions, 20 deletions
| diff --git a/src/Panorama.cxx b/src/Panorama.cxx index e6349e1..38f2037 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -1,5 +1,5 @@  //  -// "$Id: Panorama.cxx,v 1.36 2005/05/10 17:05:32 hofmann Exp $" +// "$Id: Panorama.cxx,v 1.37 2005/05/10 17:06:50 hofmann Exp $"  //  // Panorama routines.  // @@ -31,14 +31,14 @@ extern "C" {  #include "Panorama.H" -static int newton(double *tan_nick_view,  -		  double *tan_dir_view, -		  double *n_scale, -		  double tan_dir_m1, -		  double tan_nick_m1, -		  double tan_dir_m2, -		  double tan_nick_m2, -		  double d_m1_2, double d_m2_2, double d_m1_m2_2); +static int opt_step(double *tan_nick_view,  +		    double *tan_dir_view, +		    double *n_scale, +		    double tan_dir_m1, +		    double tan_nick_m1, +		    double tan_dir_m2, +		    double tan_nick_m2, +		    double d_m1_2, double d_m2_2, double d_m1_m2_2);  static double  comp_tilt(double tan_nick_view, double tan_dir_view, double n_scale, @@ -288,9 +288,9 @@ Panorama::optimize(Hill *m1, Hill *m2) {    d_m1_m2_2 = pow(x1 - x2, 2.0) + pow(y1 - y2, 2.0);    for (i=0; i<5; i++) { -    newton(&tan_nick_view, &tan_dir_view, &n_scale,  -	   tan_dir_m1, tan_nick_m1, tan_dir_m2, tan_nick_m2, -	   d_m1_2, d_m2_2, d_m1_m2_2); +    opt_step(&tan_nick_view, &tan_dir_view, &n_scale,  +	     tan_dir_m1, tan_nick_m1, tan_dir_m2, tan_nick_m2, +	     d_m1_2, d_m2_2, d_m1_m2_2);    }    if (isnan(tan_dir_view) || isnan(tan_nick_view) ||  @@ -598,14 +598,14 @@ get_matrix(double m[],  } -static int newton(double *tan_nick_view,  -		  double *tan_dir_view, -		  double *n_scale, -		  double tan_dir_m1, -		  double tan_nick_m1, -		  double tan_dir_m2, -		  double tan_nick_m2, -		  double d_m1_2, double d_m2_2, double d_m1_m2_2) { +static int opt_step(double *tan_nick_view,  +		    double *tan_dir_view, +		    double *n_scale, +		    double tan_dir_m1, +		    double tan_nick_m1, +		    double tan_dir_m2, +		    double tan_nick_m2, +		    double d_m1_2, double d_m2_2, double d_m1_m2_2) {    double a[9];    double b[3];    double a_x0[3], f_x0 [3], x0[3]; | 
