(degrees float32)
| 3 | import "math" |
| 4 | |
| 5 | func DegreesToAngle(degrees float32) byte { |
| 6 | return byte(math.Round(float64(degrees) * (256.0 / 360.0))) |
| 7 | } |
| 8 | |
| 9 | func AngleToDegrees(angle byte) float32 { |
| 10 | return float32(angle) * (360.0 / 256.0) |
nothing calls this directly
no outgoing calls
no test coverage detected