summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lsq_rectilinear.mac2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsq_rectilinear.mac b/src/lsq_rectilinear.mac
index bbe60b8..95ed273 100644
--- a/src/lsq_rectilinear.mac
+++ b/src/lsq_rectilinear.mac
@@ -25,7 +25,7 @@ x_rot : y * sin(c_tilt) + x * cos(c_tilt) + x0$
y_rot : y * cos(c_tilt) - x * sin(c_tilt)$
/* distortion correction */
-d : x_rot ^ 2 + y_rot ^ 2$
+d : sqrt(x_rot ^ 2 + y_rot ^ 2)$
dist_fact : d ^ 2 * k1 + d * k0$
x_dist : x_rot * (1 + dist_fact) * scale$
y_dist : y_rot * (1 + dist_fact) * scale$