Added langext/coords && CompareArr[T]
This commit is contained in:
11
langext/coords.go
Normal file
11
langext/coords.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user