Ejemplo n.º 1
0
func ExampleSepPauwels() {
	// Example 17.b, p. 116.
	r1 := unit.NewRA(14, 15, 39.7).Angle()
	d1 := unit.NewAngle(' ', 19, 10, 57)
	r2 := unit.NewRA(13, 25, 11.6).Angle()
	d2 := unit.NewAngle('-', 11, 9, 41)
	d := angle.SepPauwels(r1, d1, r2, d2)
	fmt.Println(sexa.FmtAngle(d))
	// Output:
	// 32°47′35″
}
Ejemplo n.º 2
0
func ExampleSepPauwels() {
	// Example 17.b, p. 116.
	r1 := sexa.NewRA(14, 15, 39.7).Rad()
	d1 := sexa.NewAngle(false, 19, 10, 57).Rad()
	r2 := sexa.NewRA(13, 25, 11.6).Rad()
	d2 := sexa.NewAngle(true, 11, 9, 41).Rad()
	d := angle.SepPauwels(r1, d1, r2, d2)
	fmt.Println(sexa.NewFmtAngle(d))
	// Output:
	// 32°47′35″
}