From: <tz...@us...> - 2010-04-07 17:32:54
|
Revision: 3441 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=3441&view=rev Author: tzlaine Date: 2010-04-07 17:32:48 +0000 (Wed, 07 Apr 2010) Log Message: ----------- Fixed PointInPartialEllipse(), which was not using theta_begin and theta_end relative to theta_major. Modified Paths: -------------- trunk/FreeOrion/util/Math.cpp Modified: trunk/FreeOrion/util/Math.cpp =================================================================== --- trunk/FreeOrion/util/Math.cpp 2010-04-07 16:31:47 UTC (rev 3440) +++ trunk/FreeOrion/util/Math.cpp 2010-04-07 17:32:48 UTC (rev 3441) @@ -27,7 +27,7 @@ v = prod(rotate, v); if (theta_begin != theta_end) { - double theta = std::atan2(y, x); + double theta = std::atan2(v(1, 0), v(0, 0)); if (theta < theta_begin || theta_end < theta) return false; } |