From 4f544f1ab0d04a4b18fac5e9bec0e869b981f038 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 21 May 2008 19:58:47 +0200 Subject: fixes to cartesian rotation --- src/Stitch.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Stitch.cxx') diff --git a/src/Stitch.cxx b/src/Stitch.cxx index aa3798b..e4f3d60 100644 --- a/src/Stitch.cxx +++ b/src/Stitch.cxx @@ -109,7 +109,7 @@ Stitch::resample(GipfelWidget::sample_mode_t m, } for (int y = 0; y < h; y++) { - double a_nick = (double)20.0 - y * step_view; + double a_nick = atan((double)(y_off - y)/radius); for (int x = 0; x < w; x++) { double a_view; -- cgit v1.2.3