LatLngFromDegrees returns a LatLng for the coordinates given in degrees.
(lat, lng float64)
| 34 | |
| 35 | // LatLngFromDegrees returns a LatLng for the coordinates given in degrees. |
| 36 | func LatLngFromDegrees(lat, lng float64) LatLng { |
| 37 | return LatLng{s1.Angle(lat) * s1.Degree, s1.Angle(lng) * s1.Degree} |
| 38 | } |
| 39 | |
| 40 | // IsValid returns true iff the LatLng is normalized, with Lat ∈ [-π/2,π/2] and Lng ∈ [-π,π]. |
| 41 | func (ll LatLng) IsValid() bool { |
searching dependent graphs…