Files
StarPilot/mapd_repo/math/vector.go
T
firestar5683 1ce9f73ae2 Navigation and maps
Add navigation and map matching providers with the vendored map service sources.
2026-10-03 22:34:37 +00:00

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)
}