Added langext/coords && CompareArr[T]

This commit is contained in:
2022-10-27 18:04:20 +02:00
parent c223e2f0fa
commit 21ae9c70d2
2 changed files with 42 additions and 0 deletions

11
langext/coords.go Normal file
View File

@@ -0,0 +1,11 @@
package langext
import "math"
func DegToRad(deg float64) float64 {
return deg * (math.Pi / 180.0)
}
func RadToDeg(rad float64) float64 {
return rad / (math.Pi * 180.0)
}