// LatLngFromDegrees returns a LatLng for the coordinates given in degrees.
func LatLngFromDegrees(lat, lng float64) LatLng {
return LatLng{s1.Angle(lat) * s1.Degree, s1.Angle(lng) * s1.Degree}
}
Not sure about the formule, but I tested it with a known polygon and a couple of known points, and it works as expected inverting the params, teste follows:
Hi, I'm pretty sure about inverted params here:
https://github.com/golang/geo/blob/master/s2/latlng.go#L36
Not sure about the formule, but I tested it with a known polygon and a couple of known points, and it works as expected inverting the params, teste follows: