Пример #1
0
// p. 83
func TestLatDiff(t *testing.T) {
	φ0 := base.NewAngle(false, 45, 5, 46.36).Rad()
	diff := base.NewFmtAngle(globe.GeocentricLatitudeDifference(φ0))
	if f := fmt.Sprintf("%.2d", diff); f != "11′32″.73" {
		t.Fatal(f)
	}
}
Пример #2
0
// p. 83
func TestLatDiff(t *testing.T) {
	φ0 := unit.NewAngle(' ', 45, 5, 46.36)
	diff := globe.GeocentricLatitudeDifference(φ0)
	if f := fmt.Sprintf("%.2d", sexa.FmtAngle(diff)); f != "11′32″.73" {
		t.Fatal(f)
	}
}