3

public Geopoint(double latitude, double longitude)
{
Latitude = latitude;
Longitude = Longitude;
}

Me: "why is the longitude always 0"

FUCK FUCK FUCK FUCK FUCK FUCK

Good job that didn't make it onto Nuget... oh, wait, yeah it did.

Comments
  • 0
    Please, longitude before latitude, because of (X, Y).
  • 0
    @joas really? I've always heard people give coordinates in lat/long not long/lat
    There's no x and y on earth
  • 1
    @j4cobgarby It's used in programs and libraries quite widely. One reasoning is that it's easier to hop between different coordinate-systems. It's never shown to users in that format.
  • 0
    @joas oh that makes sense, I've never done any programming with geolocations
  • 0
    If looking at a map X-axis or longitude is horizontal and Y-axis or latitude is horizontal. I hope I didn't mess that up. šŸ¤”

    Edit: nope it's right šŸ˜‹
  • 4
    @j4cobgarby there is, but XYZ coordinates are in a Cartesian system and don't translate in any obvious way to lat/long polar coordinates, especially when your GPS device has already corrected for the WGS84 geodesic and that's not documented anywhere and... What were we talking about?
Add Comment