diff options
author | Thomas White <taw@physics.org> | 2016-07-13 17:59:53 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-07-15 17:08:47 +0200 |
commit | dc849446d914e3610be67f826790f29053dae243 (patch) | |
tree | c0754a7ea5f556038bb0c27b5361da31bbfcf248 | |
parent | 0d120234e985b164be6e0495534cf75ae5749b84 (diff) |
geoptimiser: Output angles were in radians, not degrees (!)
-rw-r--r-- | src/geoptimiser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c index 18512784..7cd1ff5d 100644 --- a/src/geoptimiser.c +++ b/src/geoptimiser.c @@ -961,7 +961,7 @@ static int compute_rot_stretch_for_empty_panels(struct rg_collection *quads, "pixels. Using average angle: %0.4f " "degrees\n", conn_data[di].name, conn_data[di].n_peaks_in_conn, - conn_data[di].cang); + rad2deg(conn_data[di].cang)); } else { @@ -1551,7 +1551,8 @@ static double compute_rotation_and_stretch(struct rg_collection *connected, STATUS("Panel %s, num: %li, angle: %0.4f deg, stretch coeff: " "%0.4f\n", conn_data[di].name, num_ang, - conn_data[di].cang, conn_data[di].cstr); + rad2deg(conn_data[di].cang), + conn_data[di].cstr); stretch_coeff[num_coeff] = conn_data[di].cstr; num_angles[num_coeff] = num_ang; |