{"id":2261,"date":"2006-01-09T09:08:00","date_gmt":"2006-01-09T09:08:00","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/net-oddities-4\/"},"modified":"2016-07-28T10:48:44","modified_gmt":"2016-07-28T10:48:44","slug":"net-oddities-4","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/net-oddities-4\/","title":{"rendered":".NET Oddities #4"},"content":{"rendered":"<p>This is sheer genius:<\/p>\n<p><b>System.Math.Sin( double a )<br \/>System.Math.Cos( double a )<\/b><br \/>&#8230;etc<\/p>\n<p>all take an angle in radians as their argument. However:<\/p>\n<p><b>System.Drawing.Drawing2D.Matrix.Rotate( float angle )<\/b><br \/>and <b>System.Drawing.Drawing2D.Matrix.Rotate( float angle, MatrixOrder order )<\/b><\/p>\n<p>both take the angle in degrees. Who on earth designed this?!??<\/p>\n<p>&#8230;<\/p>\n<p>Never mind, it&#8217;s not that important. I&#8217;m just going to take a few deep breaths, get my blood pressure down, and go and make a nice, soothing cup of tea instead&#8230; and then I&#8217;m going to submit this to <a href=\"http:\/\/www.thedailywtf.com\/\">thedailywtf.com<\/a>. For the rest of you, just watch out for this little gotcha: things like this are the reason multi-million dollar space probes go missing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is sheer genius: System.Math.Sin( double a )System.Math.Cos( double a )&#8230;etc all take an angle in radians as their argument. However: System.Drawing.Drawing2D.Matrix.Rotate( float angle )and System.Drawing.Drawing2D.Matrix.Rotate( float angle, MatrixOrder order ) both take the angle in degrees. Who on earth designed this?!?? &#8230; Never mind, it&#8217;s not that important. I&#8217;m just going to take a&#8230;&hellip;<\/p>\n","protected":false},"author":221714,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-2261","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/2261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/221714"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=2261"}],"version-history":[{"count":1,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/2261\/revisions"}],"predecessor-version":[{"id":24230,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/2261\/revisions\/24230"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=2261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=2261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=2261"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=2261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}