From 2f9b10e379fe636636b554f8abdbbc057a5f34bd Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 31 May 2024 14:39:31 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Add=20additional=2045=C2=B0=20shortcu?= =?UTF-8?q?ts=20for=20sin/cos"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Needs more testing This reverts commit e83ca5e91d59053783f0bed2d6ae6a08d1a4203e. --- libs/kimath/include/geometry/eda_angle.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/kimath/include/geometry/eda_angle.h b/libs/kimath/include/geometry/eda_angle.h index 034432aaca..912f42c6a6 100644 --- a/libs/kimath/include/geometry/eda_angle.h +++ b/libs/kimath/include/geometry/eda_angle.h @@ -174,10 +174,6 @@ public: if( test.m_value == 0.0 || test.m_value == 180.0 ) return 0.0; - else if( test.m_value == 45.0 || test.m_value == 135.0 ) - return M_SQRT1_2; - else if( test.m_value == 225.0 || test.m_value == 315.0 ) - return -M_SQRT1_2; else if( test.m_value == 90.0 ) return 1.0; else if( test.m_value == 270.0 ) @@ -197,10 +193,6 @@ public: return -1.0; else if( test.m_value == 90.0 || test.m_value == 270.0 ) return 0.0; - else if( test.m_value == 45.0 || test.m_value == 315.0 ) - return M_SQRT2; - else if( test.m_value == 135.0 || test.m_value == 225.0 ) - return -M_SQRT2; else return cos( AsRadians() ); }