-
Notifications
You must be signed in to change notification settings - Fork 0
/
coord_topocentric.go
39 lines (28 loc) · 948 Bytes
/
coord_topocentric.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package sgp4
import "github.com/SharkEzz/go-sgp4/internal/cppsgp4"
type CoordTopocentric struct {
_coordTopocentric cppsgp4.CoordTopocentric
}
func NewCoordTopocentric(azimuth, elevation, xrange, range_rate float64) (c *CoordTopocentric, err error) {
defer catch(&err)
coords := cppsgp4.NewCoordTopocentric(azimuth, elevation, xrange, range_rate)
return &CoordTopocentric{coords}, err
}
func (c *CoordTopocentric) Azimuth() float64 {
return c._coordTopocentric.GetAzimuth()
}
func (c *CoordTopocentric) Elevation() float64 {
return c._coordTopocentric.GetElevation()
}
func (c *CoordTopocentric) Range() float64 {
return c._coordTopocentric.GetXrange()
}
func (c *CoordTopocentric) RangeRate() float64 {
return c._coordTopocentric.GetRange_rate()
}
func (c *CoordTopocentric) ToString() string {
return c._coordTopocentric.ToString()
}
func (c *CoordTopocentric) Close() {
cppsgp4.DeleteCoordTopocentric(c._coordTopocentric)
}