From: <jim...@us...> - 2009-09-17 16:56:58
|
Revision: 1052 http://panotools.svn.sourceforge.net/panotools/?rev=1052&view=rev Author: jim0watters Date: 2009-09-17 16:56:49 +0000 (Thu, 17 Sep 2009) Log Message: ----------- Move variable initialization to the beginning of code block for MSSC compiler. Modified Paths: -------------- trunk/libpano/math.c Modified: trunk/libpano/math.c =================================================================== --- trunk/libpano/math.c 2009-09-17 16:40:27 UTC (rev 1051) +++ trunk/libpano/math.c 2009-09-17 16:56:49 UTC (rev 1052) @@ -480,6 +480,7 @@ double z0, z1, s; double FOV = DEG_TO_RAD(mp->im->hfov/scale); double m_slant[3][3]; // slant matrix + double m_rotate[3][3]; // tilt matrix // printf("Tilt Forward %5.2f %5.2f angles %5.2f, %5.2f, %5.2f\n", x_dest, y_dest, phi, phi2, phi3); @@ -494,8 +495,6 @@ m_slant[1][0] = 0; m_slant[1][1] = 1; m_slant[1][2] = 0; m_slant[2][0] = -sin(phi2)/cos(phi2); m_slant[2][1] = 0; m_slant[2][2] = 1; - double m_rotate[3][3]; // tilt matrix - // FORWARD m_rotate[0][0] = cos(phi3); m_rotate[0][1] = -sin(phi3); m_rotate[0][2] = 0; m_rotate[1][0] = sin(phi3); m_rotate[1][1] = cos(phi3); m_rotate[1][2] = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |