diff options
Diffstat (limited to 'src/lsq_rectilinear.mac')
-rw-r--r-- | src/lsq_rectilinear.mac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lsq_rectilinear.mac b/src/lsq_rectilinear.mac index 4ed1e09..8e0c0f3 100644 --- a/src/lsq_rectilinear.mac +++ b/src/lsq_rectilinear.mac @@ -2,7 +2,7 @@ * rectilinear (pinhole) projection model with distortion correction */ -/* switch to cartesian coordinates for nick rotation */ +/* switch to cartesian coordinates */ c_x : cos(m_nick) * cos(m_view - c_view)$ c_y : cos(m_nick) * sin(m_view - c_view)$ c_z : sin(m_nick)$ @@ -12,8 +12,11 @@ c_x_rot : cos(c_nick) * c_x$ + sin(c_nick) * c_z$ c_y_rot : c_y$ c_z_rot : -sin(c_nick) * c_x + cos(c_nick) * c_z$ +/* pinhole projection */ x : c_y_rot / c_x_rot$ y : - c_z_rot / c_x_rot$ + +/* rotation around view axis */ x_rot : y * sin(c_tilt) + x * cos(c_tilt)+x0$ y_rot : y * cos(c_tilt) - x * sin(c_tilt)$ |