1 2 3 4 5 6 7 8 9 10 11
package project import "math" func deg2rad(d float64) float64 { return d * math.Pi / 180.0 } func rad2deg(r float64) float64 { return 180.0 * r / math.Pi }