Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
swego: rename TopoLoc to GeoLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlnetnl committed Jul 17, 2016
1 parent f4b957c commit b521a38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions swecgo/swecgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ func TestCalc(t *testing.T) {
{gWrapper.Calc,
&swego.CalcFlags{
Flags: swego.FlagEphJPL | swego.FlagTopo,
TopoLoc: &swego.TopoLoc{Lat: 52.083333, Long: 5.116667, Alt: 0},
TopoLoc: &swego.GeoLoc{Lat: 52.083333, Long: 5.116667, Alt: 0},
},
result{[]float64{279.858426, -.000966, .983369, .0, .0, .0}, 32769}},
{gWrapper.CalcUT,
&swego.CalcFlags{
Flags: swego.FlagEphJPL | swego.FlagTopo,
TopoLoc: &swego.TopoLoc{Lat: 52.083333, Long: 5.116667, Alt: 0},
TopoLoc: &swego.GeoLoc{Lat: 52.083333, Long: 5.116667, Alt: 0},
},
result{[]float64{279.859186, -.000966, .983369, .0, .0, .0}, 32769}},
{gWrapper.Calc,
Expand Down
6 changes: 3 additions & 3 deletions swego.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type SidMode struct {
AyanT0 float64
}

// TopoLoc represents the arguments to swe_set_topo.
type TopoLoc struct {
// GeoLoc represents a geographic location.
type GeoLoc struct {
Long float64
Lat float64
Alt float64
Expand All @@ -30,7 +30,7 @@ type TopoLoc struct {
// stateless way.
type CalcFlags struct {
Flags int32
TopoLoc *TopoLoc
TopoLoc *GeoLoc // arguments to swe_set_topo
SidMode *SidMode

// FileNameJPL represents the argument to swe_set_jpl_file.
Expand Down

0 comments on commit b521a38

Please sign in to comment.