Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

Commented Issue: RectLatLng.LocationMiddle bug [16052]

$
0
0
I'd think that in the code fragment below, point2 should equal point1. This is not the case though.

var point1 = new PointLatLng(0, 0);
var rect = new RectLatLng(point1.Lat - 1, point1.Lng - 1, 2, 2);
var point2 = rect.LocationMiddle;

Possible fix: in the LocationMiddle property, change the first argument to .Offset() to half the negated HeightLat property.
Comments: Nevermind this! I'm completely wrong!

Viewing all articles
Browse latest Browse all 3384


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>