()
| 48 | } |
| 49 | |
| 50 | func ExampleLengthFromLatLngs() { |
| 51 | chukchi := s2.LatLngFromDegrees(66.025893, -169.699684) |
| 52 | seward := s2.LatLngFromDegrees(65.609727, -168.093694) |
| 53 | length := earth.LengthFromLatLngs(chukchi, seward) |
| 54 | fmt.Printf("Bering Strait is %.0f feet", length.Feet()) |
| 55 | // Output: Bering Strait is 283979 feet |
| 56 | } |
| 57 | |
| 58 | func ExampleAreaFromSteradians() { |
| 59 | bermuda := s2.PointFromLatLng(s2.LatLngFromDegrees(32.361457, -64.663495)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…