mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 05:23:41 +08:00
1ce9f73ae2
Add navigation and map matching providers with the vendored map service sources.
15 lines
147 B
Go
15 lines
147 B
Go
package math
|
|
|
|
import (
|
|
m "math"
|
|
)
|
|
|
|
type Vector struct {
|
|
X float64
|
|
Y float64
|
|
}
|
|
|
|
func (v *Vector) Bearing() float64 {
|
|
return m.Atan2(v.X, v.Y)
|
|
}
|