tag:blogger.com,1999:blog-5295746446529817470.post8214510733019884289..comments2023-05-09T16:29:24.130+02:00Comments on Dotnet by Example: Drawing circles on Windows Phone Here Maps and Windows Store Bing MapsJoost van Schaikhttp://www.blogger.com/profile/02182444268071162776noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5295746446529817470.post-279823064298927962018-06-04T16:17:06.340+02:002018-06-04T16:17:06.340+02:00@arun be aware that what you draw is something tha...@arun be aware that what you draw is something that would be a circle on a globe. Depending on your latitude, you might get different results because the (flat) map is a mercator projection. The more you move from the equator, the more warped the circle becomesJoost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-91986200580545886722018-05-28T13:58:13.414+02:002018-05-28T13:58:13.414+02:00I got oval shape when I tried to draw a medium siz...I got oval shape when I tried to draw a medium sized circle, is there any solution?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-1184645400221319542015-06-01T15:21:45.497+02:002015-06-01T15:21:45.497+02:00@Ronny It's hard to decipher what your problem...@Ronny It's hard to decipher what your problem is - but GetAtDistanceBearing is not a standard method. It's an extension method I wrote myself.Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-36874426149871239572015-05-29T05:49:02.851+02:002015-05-29T05:49:02.851+02:00hello
Example esmuy good, and easy to follow.
I&...hello<br /><br />Example esmuy good, and easy to follow.<br /><br />I'm getting a Windows Phone 8.0 app, and I have a problem with a function that tells me that there is, GetAtDistanceBearing, not if I can lend a hand in this, this method I have to do? or where he got it?<br /><br /><br />thanks<br /><br />regards<br /><br />Jair Ronny Ruiz Andia...Ronny Ruizhttps://www.blogger.com/profile/13508709435428597646noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-15160861180781140042014-10-30T09:38:19.154+01:002014-10-30T09:38:19.154+01:00@Leny my friend Jarno has made a severly updated v...@Leny my friend Jarno has made a severly updated version of this code. Download the zip file from here http://1drv.ms/1wNgTQF - the code is in thereJoost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-64299073088005188782014-10-29T09:17:05.323+01:002014-10-29T09:17:05.323+01:00" Plus, I would use a single radian counter t..." Plus, I would use a single radian counter that I would increase in 360°/#steps (in radians) by using addition" - Can you please explain on this; about how this can be optimized.<br /><br />Leny (lenypm@gmail.com)Levihttps://www.blogger.com/profile/13480593469650021848noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-36521427755999177172014-02-28T21:27:06.069+01:002014-02-28T21:27:06.069+01:00This works, and I doubt performance difference wil...This works, and I doubt performance difference will be noticeable unless you calculate lots of circle polygons, but I would refactor out the repeated trigonometry calls with same parameters into local variables so you only calculate these expensive operations only once if you can (maybe even precalculate sin/cos/atan lookup tables, trading some memory for a lot more speed).<br /><br />Plus, I would use a single radian counter that I would increase in 360°/#steps (in radians) by using addition instead of doing a for loop of number of steps around the 360° "watchface" and doing a multiplication of the loop counter and the step size in loop instance. After all multiplication is just repeated addition, so a lot of work gets done multiple times this way.<br /><br />But then again, math and that kind of performance tweaking really is *my* thing. ;-)<br /><br />Great post again, as ever, though. Useful to many people, I'm sure.peSHIrhttps://www.blogger.com/profile/14895291650174860198noreply@blogger.com